COM Example work for anyone?
Jesse Phillips
jessekphillips+D at gmail.com
Sat Oct 13 23:53:19 PDT 2012
The dmd compiler comes with some example code. One of the
examples is for COM.
Does this work for anyone else? The dll registration code is
failing: SetKeyAndValue() failed.
Other output looks good:
OLE 2 initialized
hMod = 268435456
LoadLibraryA() succeeded
pfn = 100033E0, fn = 'DllRegisterServer'
dmd -ofdserver .\dserver.d .\chello.d .\dserver.def
dmd .\dclient.d .\chello.d
I also added a couple pragma's to the files to help with linking
pragma(lib, "advapi32.lib");
pragma(lib, "ole32.lib");
pragma(lib, "oleaut32.lib");
pragma(lib, "ole32.lib");
More information about the Digitalmars-d-learn
mailing list