Click here to Skip to main content
15,890,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Virtual function in DLL Pin
Iain Clarke, Warrior Programmer10-May-10 0:59
Iain Clarke, Warrior Programmer10-May-10 0:59 
You got an unsatisfactory answer, because you posted an unsatisfactory question. Being a programmer (you're posting here, after all), you should expect the same stimulus will get the same response...

What is the gap in your knowledge that needs filling in?

Are you happy with inheritance, and abstract member functions?

Can you make a classic DLL? If not, there are articles here on codeproject that can help, as well as lots of help on the MSDN pages.

If you can export a function from a DLL, exporting a class is not much harder. Underneath, it just ends up being a bunch of ugly-named [*] exported functions anyway.

If you can do that, then just mark some abstract, or =0 as appropriate:

class CMyClass
{
public:
    void MyMemberFunction () = 0;
    ...
};


In the executable or dll that loads your dll, the programmer will have to inherit from your abstract class before they can use it - but that's true even if all the classes are in the same module.

I might be expecting too much - maybe you're only marking your member functions as virtual, in which case you have no problems at all.

Your name is John, so I assume that English is your first language. If I'm wrong, and John is a nom-de-pleume, than I half apologise if I've used a bit too much complex english here!

Good luck,

Iain.

[*] Name decoration.
I have now moved to Sweden for love (awwww).

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 
AnswerRe: data between forms sdi Pin
KarstenK9-May-10 21:31
mveKarstenK9-May-10 21:31 

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.