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

C / C++ / MFC

 
QuestionHow to handle modeless popups in main window iconic state? Pin
petekurki19-Nov-06 22:57
petekurki19-Nov-06 22:57 
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 
I have a class which is compiled to a DLL. When giving out the DLL, i give along the .h, .lib and .dll files.

.h File content (implementation in .cpp compiled to .dll and .lib)
class DLLTESTV_API CDLLtestV {<br />
public:<br />
	CDLLtestV(void);<br />
	int GetX();<br />
	void SetX(int _X);<br />
private:<br />
	int x;<br />
};


But, i do not want the end user to know any private members of my Class. Is there anyway
i can hide those? The private members are in the private: block in the .h file and are visible in my class declaration.

I want to ship .lib, .dll and .h like this


class DLLTESTV_API CDLLtestV {<br />
public:<br />
	CDLLtestV(void);<br />
	int GetX();<br />
	void SetX(int _X);<br />
// private members not shown<br />
};


I have tried doing so (by deleting manually the private : int x line in the .h file used in a test program), and the programs executes fine but causes an error at the end. Removing that line causes a stack corruption error during runtime (with the compiled DLL in a test program).

Any suggestion how i can hide the private members (users cant modify them anyway, they are private!).
AnswerRe: Hiding private members of Class with DLLs Pin
Cedric Moonen19-Nov-06 22:50
Cedric Moonen19-Nov-06 22:50 
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 

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.