dim s as yourstruct s.number1=? ... open filename for Random as #1 put #1,1,s close #1
Private Type TestType aa As Integer bb As String cc As Boolean End Typedim ee as testtypeee.aa = 12345 ee.bb = "abcdef" ee.cc = Trueopen "C:\1.txt" for output as #1 print #1,ee close #1
to: Cooly(☆回答问题不要分儿☆) 如果我想把ee 作为一个void* 的指针传给一个用VC写的dll 中的saveData(void * data, char * filename, int datalen) 该如何做?
public declare function saveData Lib "test.dll" (byRef data as testtype,buRef filename as string, byval datalen as integer)
public declare function saveData Lib "test.dll" (byRef data as testtype,byRef filename as string, byval datalen as integer)
s.number1=?
...
open filename for Random as #1
put #1,1,s
close #1
aa As Integer
bb As String
cc As Boolean
End Typedim ee as testtypeee.aa = 12345
ee.bb = "abcdef"
ee.cc = Trueopen "C:\1.txt" for output as #1
print #1,ee
close #1
如果我想把ee 作为一个void* 的指针传给一个用VC写的dll 中的saveData(void * data, char * filename, int datalen) 该如何做?
struct {
WORD aa;
char * bb;
BOOL cc;
} ee;
对吗?