Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnMouseWheel Pin
henry12811-Jan-05 11:04
henry12811-Jan-05 11:04 
GeneralRe: OnMouseWheel Pin
lzzqqq5-Jan-05 19:35
lzzqqq5-Jan-05 19:35 
GeneralReverse Find Index Coblist Pin
Anonymous5-Jan-05 11:08
Anonymous5-Jan-05 11:08 
GeneralRe: Reverse Find Index Coblist Pin
basementman5-Jan-05 11:16
basementman5-Jan-05 11:16 
GeneralRe: Reverse Find Index Coblist Pin
Anonymous5-Jan-05 11:40
Anonymous5-Jan-05 11:40 
GeneralRe: Reverse Find Index Coblist Pin
basementman6-Jan-05 4:27
basementman6-Jan-05 4:27 
GeneralDLL header hiding question... Pin
JulesChrono5-Jan-05 11:08
JulesChrono5-Jan-05 11:08 
GeneralRe: DLL header hiding question... Pin
DaneStorm5-Jan-05 18:33
DaneStorm5-Jan-05 18:33 
Hi There

I don't know if I have understand your question correct, but my answer is, to what I have undertand Smile | :) :

I would create a new header file, called DllInterface.h which will declare all the functions/methods that you want to export. Afterwards, create a new class called CreatorDll, which will implement all the original methods. In this class, in your cpp file, only include all the header files you want to hide. In the corresponding header file include the Interface file. If you have some classes which you want to offer users of the dll, make creator functions in your creator class, which returns with instances of the corresponding classes.
Then the places where you want to use the dll, only include the headerfile for the creator.

This is the way I do, when I want to export some methods of class, which perhaps uses a lot of classes.

I hope this gives you an idea, or maybe can help you in the wanted direction.

Best regards,
Søren Madsen
Denmark
GeneralRe: DLL header hiding question... Pin
lzzqqq5-Jan-05 20:11
lzzqqq5-Jan-05 20:11 
GeneralEmbedded dialog hoards messages (MFC) Pin
Alex McMorris5-Jan-05 10:53
Alex McMorris5-Jan-05 10:53 
GeneralWindows Socket DLL Pin
RedDragon2k5-Jan-05 9:59
RedDragon2k5-Jan-05 9:59 
GeneralDocument Pin
act_x5-Jan-05 9:43
act_x5-Jan-05 9:43 
GeneralSending string (text or array of character) trough a socket-connection. Pin
SimCom5-Jan-05 9:22
SimCom5-Jan-05 9:22 
GeneralRe: Sending string (text or array of character) trough a socket-connection. Pin
Ravi Bhavnani5-Jan-05 10:13
professionalRavi Bhavnani5-Jan-05 10:13 
GeneralRe: Sending string (text or array of character) trough a socket-connection. Pin
SimCom5-Jan-05 23:55
SimCom5-Jan-05 23:55 
GeneralClass Confusion Pin
whitee5-Jan-05 7:57
whitee5-Jan-05 7:57 
GeneralRe: Class Confusion Pin
Gerald Schwab5-Jan-05 8:49
Gerald Schwab5-Jan-05 8:49 
GeneralDrawing rectangles, lines and arcs in directx Pin
SteQve5-Jan-05 7:51
SteQve5-Jan-05 7:51 
GeneralOpenGL question : wglUseFontBitmaps and glGenLists Pin
Maximilien5-Jan-05 4:55
Maximilien5-Jan-05 4:55 
GeneralRe: OpenGL question : wglUseFontBitmaps and glGenLists Pin
El Corazon5-Jan-05 7:03
El Corazon5-Jan-05 7:03 
GeneralRe: OpenGL question : wglUseFontBitmaps and glGenLists Pin
Maximilien5-Jan-05 7:21
Maximilien5-Jan-05 7:21 
GeneralFrom C to C++ Pointer Pin
jw815-Jan-05 4:55
jw815-Jan-05 4:55 
GeneralRe: From C to C++ Pointer Pin
David Crow5-Jan-05 5:24
David Crow5-Jan-05 5:24 
GeneralRe: From C to C++ Pointer Pin
jw815-Jan-05 5:26
jw815-Jan-05 5:26 
GeneralRe: From C to C++ Pointer Pin
David Crow5-Jan-05 5:54
David Crow5-Jan-05 5:54 

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.