[I wish I had received my copy of Kale's book]
However, if someone could help, I'd really appreciate it.
Code: Select all
Enumeration
#oledll
EndEnumeration
If OpenLibrary(#oledll, "ole32.dll")
cocreateaddr.l = GetFunction(#oledll,"CoCreateGuid")
stringguidaddr.l = GetFunction(#oledll,"StringFromGUID2")
newguid.GUID
result.l = CallFunctionFast(cocreateaddr,newguid)
Dim a.b(100)
leng.l = 40
Redim a.b(leng*2-1)
lr.l = CallFunctionFast(stringguidaddr,newguid,@a,leng)
Debug lr
stringguid.s
For i.l = 0 To 39
; stringguid = stringguid + PeekS(@a(i))
Debug PeekS(@a(i))
Next
;Debug stringguid
Else
Debug "ole32.dll not found"
EndIf




