Hello,
I am learning c# and was wondering if anyone could help convert this small snippet of vb code to c#?
Dim blob() As Byte
Dim bvariant As Object
If RegTemplate Is Nothing Then
Exit Sub
End If
RegTemplate.Export(bvariant)
blob = bvariant
Kill("c:\template.fpt")
FileOpen(1, "c:\template.fpt", OpenMode.Binary)
FilePut(1, blob)
FileClose(1)
I having difficulty finding a method(or a way) comparable to what RegTemplate.Export(bvariant) does in vb, same with the FilePut method any help would be greatly appreciated.
I am learning c# and was wondering if anyone could help convert this small snippet of vb code to c#?
Dim blob() As Byte
Dim bvariant As Object
If RegTemplate Is Nothing Then
Exit Sub
End If
RegTemplate.Export(bvariant)
blob = bvariant
Kill("c:\template.fpt")
FileOpen(1, "c:\template.fpt", OpenMode.Binary)
FilePut(1, blob)
FileClose(1)
I having difficulty finding a method(or a way) comparable to what RegTemplate.Export(bvariant) does in vb, same with the FilePut method any help would be greatly appreciated.