Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to handle modeless popups in main window iconic state? Pin
Michael Dunn19-Nov-06 23:05
sitebuilderMichael Dunn19-Nov-06 23:05 
GeneralRe: How to handle modeless popups in main window iconic state? Pin
petekurki19-Nov-06 23:13
petekurki19-Nov-06 23:13 
Questionhow to get the length (duration) of a wave file Pin
singersinger19-Nov-06 22:17
singersinger19-Nov-06 22:17 
QuestionFinding if a pc has n/w connection Pin
Smith#19-Nov-06 22:13
Smith#19-Nov-06 22:13 
AnswerRe: Finding if a pc has n/w connection Pin
Michael Dunn19-Nov-06 22:34
sitebuilderMichael Dunn19-Nov-06 22:34 
QuestionRe: Finding if a pc has n/w connection Pin
Smith#19-Nov-06 23:08
Smith#19-Nov-06 23:08 
QuestionHiding private members of Class with DLLs Pin
uusheikh19-Nov-06 22:10
uusheikh19-Nov-06 22:10 
AnswerRe: Hiding private members of Class with DLLs Pin
Cedric Moonen19-Nov-06 22:50
Cedric Moonen19-Nov-06 22:50 
The way it is done generally is to provide an interface only: make your CDlltestV class inherits from an interface class (IDlltestV for example) which exposes only the public functions as pure virtual:

class DLLTESTV_API IDLLtestV {<br />
public:<br />
CDLLtestV(void);<br />
virtual int GetX() = 0;<br />
virtual void SetX(int _X) = 0;<br />
};


Then in your dll, you simply make CDlltestV inherits from this interface and you provide there the members and implements the functions.
The 'problem' is that you'll need to provide a function to will create an instance of this class and return a pointer to your interface:

DLLTESTV_API  IDlltestV* GetClass()<br />
{<br />
   return new CDlltestV;<br />
}


But if your code is well written, this shouldn't pose too much problems.


Cédric Moonen
Software developer

Charting control [v1.1]

AnswerRe: Hiding private members of Class with DLLs Pin
Mr.Brainley19-Nov-06 23:28
Mr.Brainley19-Nov-06 23:28 
AnswerRe: Hiding private members of Class with DLLs Pin
Maximilien20-Nov-06 1:49
Maximilien20-Nov-06 1:49 
AnswerRe: Hiding private members of Class with DLLs [modified] Pin
cmk20-Nov-06 3:39
cmk20-Nov-06 3:39 
GeneralRe: Hiding private members of Class with DLLs Pin
uusheikh20-Nov-06 22:55
uusheikh20-Nov-06 22:55 
GeneralConvert Date to COleDateTime Pin
Monty219-Nov-06 21:51
Monty219-Nov-06 21:51 
GeneralAnd the answer is .. Pin
Monty219-Nov-06 21:54
Monty219-Nov-06 21:54 
QuestionAdding treeviewCtrl to a combobox Pin
Nagaraju_Focus19-Nov-06 21:33
Nagaraju_Focus19-Nov-06 21:33 
AnswerRe: Adding treeviewCtrl to a combobox Pin
Steve Echols19-Nov-06 21:52
Steve Echols19-Nov-06 21:52 
QuestionScoket. Pin
Abbas Murad19-Nov-06 21:11
Abbas Murad19-Nov-06 21:11 
AnswerRe: Scoket. Pin
Mark Salsbery20-Nov-06 5:58
Mark Salsbery20-Nov-06 5:58 
GeneralRe: Scoket. Pin
Abbas Murad20-Nov-06 17:41
Abbas Murad20-Nov-06 17:41 
QuestionSerial I/O in Non-Overlapped mode .... Pin
Mohammd Bilal19-Nov-06 21:08
Mohammd Bilal19-Nov-06 21:08 
AnswerRe: Serial I/O in Non-Overlapped mode .... Pin
Roger Stoltz19-Nov-06 21:36
Roger Stoltz19-Nov-06 21:36 
AnswerRe: Serial I/O in Non-Overlapped mode .... Pin
CPallini20-Nov-06 2:24
mveCPallini20-Nov-06 2:24 
QuestionHow to draw the window border by myself ? Pin
samfromcn19-Nov-06 21:08
samfromcn19-Nov-06 21:08 
QuestionHow to get mouse selected text? thanks ... Pin
tiaozi19-Nov-06 20:46
tiaozi19-Nov-06 20:46 
AnswerRe: How to get mouse selected text? thanks ... Pin
Rajesh R Subramanian19-Nov-06 23:20
professionalRajesh R Subramanian19-Nov-06 23:20 

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.