COM & DLLs

Started by
1 comment, last by ExellonDeveloper 22 years, 8 months ago
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.
Free Spirits Studios
Advertisement
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
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Thanks
Free Spirits Studios

This topic is closed to new replies.

Advertisement