Click here to Skip to main content
16,011,170 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPDF View Pin
David Paul Jones3-May-01 4:56
David Paul Jones3-May-01 4:56 
GeneralRe: PDF View Pin
Christian Graus3-May-01 13:26
protectorChristian Graus3-May-01 13:26 
GeneralRe: PDF View Pin
Paul Selormey3-May-01 17:27
Paul Selormey3-May-01 17:27 
GeneralRe: PDF View Pin
Christian Graus3-May-01 17:31
protectorChristian Graus3-May-01 17:31 
GeneralEnhanced drag and drop Pin
wfalby3-May-01 3:50
wfalby3-May-01 3:50 
GeneralRe: Enhanced drag and drop Pin
Tomasz Sowinski3-May-01 4:35
Tomasz Sowinski3-May-01 4:35 
GeneralMFC APP - Copy files from folder to a:\ Pin
Gerry3-May-01 3:45
Gerry3-May-01 3:45 
Questionpassing formatted string as argument??? Pin
hearties3-May-01 3:37
hearties3-May-01 3:37 
Is it possible to pass formatted string to functions?

//function prototype
void find(CString s, int n);

//code 1
//this is what I want to implement
find("0=", nLevel);
// do something
find("1=", nLevel);
// do something
find("2=", nLevel);
// do something

// code2
// to implement the above in a for loop
// can I do something like this?
for (i = 0, i<=3, i++)
{
//blah blah
find("%d=" i, nLevel);
// blah blah
}

code 2 obviously doesnt work, but is there any other way I can implement code 1?

pls help
Big Grin | :-D
AnswerRe: passing formatted string as argument??? Pin
Igor Sukhov3-May-01 4:53
Igor Sukhov3-May-01 4:53 
AnswerRe: passing formatted string as argument??? Pin
David Fedolfi3-May-01 5:54
David Fedolfi3-May-01 5:54 
Generalcapturing window messages with Visual C++ 6.0 Pin
3-May-01 0:51
suss3-May-01 0:51 
GeneralRe: capturing window messages with Visual C++ 6.0 Pin
Igor Sukhov3-May-01 2:46
Igor Sukhov3-May-01 2:46 
GeneralRe: capturing window messages with Visual C++ 6.0 Pin
3-May-01 4:30
suss3-May-01 4:30 
GeneralRe: capturing window messages with Visual C++ 6.0 Pin
Igor Sukhov3-May-01 4:40
Igor Sukhov3-May-01 4:40 
GeneralRe: capturing window messages with Visual C++ 6.0 Pin
Igor Sukhov3-May-01 4:40
Igor Sukhov3-May-01 4:40 
GeneralRe: capturing window messages with Visual C++ 6.0 Pin
3-May-01 5:36
suss3-May-01 5:36 
GeneralRe: capturing window messages with Visual C++ 6.0 Pin
Christian Graus3-May-01 13:28
protectorChristian Graus3-May-01 13:28 
GeneralRe: capturing window messages with Visual C++ 6.0 Pin
3-May-01 5:34
suss3-May-01 5:34 
Generalcan't get the right type of buffer to read file. Pin
hearties3-May-01 0:04
hearties3-May-01 0:04 
GeneralRe: can't get the right type of buffer to read file. Pin
Igor Sukhov3-May-01 1:08
Igor Sukhov3-May-01 1:08 
GeneralRe: can't get the right type of buffer to read file. Pin
hearties3-May-01 1:17
hearties3-May-01 1:17 
GeneralRe: can't get the right type of buffer to read file. Pin
hearties3-May-01 1:22
hearties3-May-01 1:22 
GeneralRe: can't get the right type of buffer to read file. Pin
hearties3-May-01 1:26
hearties3-May-01 1:26 
QuestionI am broadcasting a message on port 53 with INADDR_BROADCAST to locate a nearest NameServer. Why no response ? Pin
2-May-01 21:59
suss2-May-01 21:59 
GeneralCStdioFile::ReadString can't work Pin
hearties2-May-01 21:11
hearties2-May-01 21:11 

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.