Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Virtual function in DLL Pin
Richard MacCutchan10-May-10 3:49
mveRichard MacCutchan10-May-10 3:49 
GeneralRe: Virtual function in DLL Pin
CPallini10-May-10 4:03
mveCPallini10-May-10 4:03 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 3:45
john563210-May-10 3:45 
GeneralRe: Virtual function in DLL Pin
Cedric Moonen10-May-10 3:57
Cedric Moonen10-May-10 3:57 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 4:18
john563210-May-10 4:18 
GeneralRe: Virtual function in DLL Pin
Cedric Moonen10-May-10 4:31
Cedric Moonen10-May-10 4:31 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 5:52
john563210-May-10 5:52 
GeneralRe: Virtual function in DLL Pin
Cedric Moonen10-May-10 7:29
Cedric Moonen10-May-10 7:29 
If the class has some pure virtual functions in it, then it means that you have to make a class that inherits from it and provide the methods which are missing.
Now, the fact that this class comes from a dll means that the class has to be exported. And importing a class from a dll works only with implicit loading, which means you must have an import lib file with the dll.

Now, on the other hand if the full code of the class resides only in the header file, then the fact that it is a dll doesn't change anything. You simply include the header file in your code and create a class that inherits from that class. But of course, this will only be useful if the dll provides a way to "register" your class with the rest of the code of the dll.
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

AnswerRe: Virtual function in DLL Pin
Iain Clarke, Warrior Programmer10-May-10 0:59
Iain Clarke, Warrior Programmer10-May-10 0:59 
QuestionTranscoding using ffmpeg Pin
gmallax9-May-10 22:37
gmallax9-May-10 22:37 
AnswerRe: Transcoding using ffmpeg Pin
Code-o-mat9-May-10 23:13
Code-o-mat9-May-10 23:13 
GeneralRe: Transcoding using ffmpeg Pin
gmallax10-May-10 0:24
gmallax10-May-10 0:24 
GeneralRe: Transcoding using ffmpeg Pin
Code-o-mat10-May-10 0:34
Code-o-mat10-May-10 0:34 
GeneralRe: Transcoding using ffmpeg Pin
gmallax10-May-10 0:37
gmallax10-May-10 0:37 
Questionread data from modem Pin
A_Fa9-May-10 21:50
A_Fa9-May-10 21:50 
AnswerRe: read data from modem Repost Pin
Richard MacCutchan9-May-10 22:02
mveRichard MacCutchan9-May-10 22:02 
QuestionVC 2008 problem Pin
Member 36537519-May-10 21:38
Member 36537519-May-10 21:38 
AnswerRe: VC 2008 problem Pin
Richard MacCutchan9-May-10 22:00
mveRichard MacCutchan9-May-10 22:00 
GeneralRe: VC 2008 problem Pin
Member 365375110-May-10 0:44
Member 365375110-May-10 0:44 
GeneralRe: VC 2008 problem Pin
Richard MacCutchan10-May-10 1:18
mveRichard MacCutchan10-May-10 1:18 
GeneralRe: VC 2008 problem Pin
peterchen10-May-10 2:19
peterchen10-May-10 2:19 
GeneralRe: VC 2008 problem Pin
Tim Craig10-May-10 10:04
Tim Craig10-May-10 10:04 
GeneralRe: VC 2008 problem Pin
Abin10-May-10 15:57
Abin10-May-10 15:57 
Questiondata between forms sdi Pin
hellogany9-May-10 20:05
hellogany9-May-10 20:05 
AnswerRe: data between forms sdi Pin
Cedric Moonen9-May-10 20:21
Cedric Moonen9-May-10 20:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.