COM & DLLs
I am using a DLL to make a game of mine and I need to know how to do such things as export, and all the basic COM stuff.
Oh is that all? Here, let me write a 1000 page book for you :p
File->New
Win32 Dyanmic-Link Library
A Dll that exports some symbols
and voila a dll that exports some symbols.
File->New
ATL COM AppWizard
Server Type: DLL
No checks
and voila an empty COM dll.
Right click on the ClassView of the Workspace view,
Pick "New ATL Object"
Simple Object
give it a name (i.e. ObjectTest), Don''t hit enter!
Goto Attributes
Pick Interface:Custom (leave on dual for extra bloat to support scipting languges)
For a good time, pick Threading Model:Free
and check Free Threaded Marshaler
You''ll need a book or reference to write the IDL needed to make the typelibrary for the objects.
Magmai Kai Holmlor
- Not For Rent
File->New
Win32 Dyanmic-Link Library
A Dll that exports some symbols
and voila a dll that exports some symbols.
File->New
ATL COM AppWizard
Server Type: DLL
No checks
and voila an empty COM dll.
Right click on the ClassView of the Workspace view,
Pick "New ATL Object"
Simple Object
give it a name (i.e. ObjectTest), Don''t hit enter!
Goto Attributes
Pick Interface:Custom (leave on dual for extra bloat to support scipting languges)
For a good time, pick Threading Model:Free
and check Free Threaded Marshaler
You''ll need a book or reference to write the IDL needed to make the typelibrary for the objects.
Magmai Kai Holmlor
- Not For Rent
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement