Click here to Skip to main content
15,913,152 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hide from application list Pin
ThatsAlok3-May-05 1:00
ThatsAlok3-May-05 1:00 
GeneralCan't compile function template on VC7.1 Pin
Teerayoot2-May-05 23:48
Teerayoot2-May-05 23:48 
GeneralRe: Can't compile function template on VC7.1 Pin
ThatsAlok2-May-05 23:59
ThatsAlok2-May-05 23:59 
GeneralRe: Can't compile function template on VC7.1 Pin
Rahim Rattani3-May-05 0:25
Rahim Rattani3-May-05 0:25 
GeneralRe: Can't compile function template on VC7.1 Pin
Teerayoot3-May-05 2:07
Teerayoot3-May-05 2:07 
QuestionHow to do this???? Pin
eli150219792-May-05 23:41
eli150219792-May-05 23:41 
AnswerRe: How to do this???? Pin
Rahim Rattani2-May-05 23:57
Rahim Rattani2-May-05 23:57 
AnswerRe: How to do this???? Pin
toxcct3-May-05 0:10
toxcct3-May-05 0:10 
eli15021979 wrote:
my question is - how can i set a CString object to empty by default?
for example:
void Function(int x , CString string = ???????);

and call that function:
Function(10,"Not an empty string"); // x = 10 , string = "Not an empty string"


why don't you do the same as you code with integers...?

<font color=blue>void</font> Function(<font color=blue>int</font> x , CString string = <font color=gray>""</font>);
Then you call it the way you like...
Function(10, <font color=gray>"Hello CP"</font>);    <font color=green>// Function(10, "")</font>
Function(10);                <font color=green>// Function(10, "Hello CP")</font>



TOXCCT >>> GEII power
[toxcct][VisualCalc]
AnswerRe: How to do this???? Pin
Blake Miller3-May-05 8:04
Blake Miller3-May-05 8:04 
QuestionGroup calendar control ? Pin
Bernhard2-May-05 23:39
Bernhard2-May-05 23:39 
GeneralSetWindowRgn() for buttons Pin
Asha Udupa2-May-05 23:24
Asha Udupa2-May-05 23:24 
GeneralRe: SetWindowRgn() for buttons Pin
Behzad Ebrahimi2-May-05 23:40
Behzad Ebrahimi2-May-05 23:40 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa2-May-05 23:45
Asha Udupa2-May-05 23:45 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:01
ThatsAlok3-May-05 0:01 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:05
Asha Udupa3-May-05 0:05 
GeneralRe: SetWindowRgn() for buttons Pin
Behzad Ebrahimi3-May-05 0:14
Behzad Ebrahimi3-May-05 0:14 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:25
Asha Udupa3-May-05 0:25 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:28
ThatsAlok3-May-05 0:28 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:30
Asha Udupa3-May-05 0:30 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:39
ThatsAlok3-May-05 0:39 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:58
ThatsAlok3-May-05 0:58 
GeneralRe: SetWindowRgn() for buttons Pin
Ryan Binns3-May-05 0:21
Ryan Binns3-May-05 0:21 
GeneralRe: SetWindowRgn() for buttons Pin
Behzad Ebrahimi3-May-05 1:50
Behzad Ebrahimi3-May-05 1:50 
Generalhlp me in dis code!! Pin
Member 18801462-May-05 23:13
Member 18801462-May-05 23:13 
GeneralRe: hlp me in dis code!! Pin
Rahim Rattani2-May-05 23:52
Rahim Rattani2-May-05 23:52 

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.