View Single Post
Old 07-13-2003, 12:27 AM   #7 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Re: DLLs and Classes

Quote:
Originally posted by moremonks
Can I create an empty class called CJobDataBase, fetch it's constructor from the DLL and somehow initialize the class, and then start rocking out with more functions? Or am I just out of luck? Thanks in advance for any help.
1) First of all you can't "fetch" a constructor from a class. The only way to make a constructor work is to instantiate an instance of that class: "SomeClass a;" or "SomeClass* a = new SomeClass;"

2) Learn the very basics of dll programming first. You will learn how functions and object are exposed (exported) and imported.
Then you will know now to deal with your dll perfectly .

- Val -
Valmont is offline   Reply With Quote