Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple dialo app, memory leak Pin
Marek Grzenkowicz2-Dec-03 21:23
Marek Grzenkowicz2-Dec-03 21:23 
Questionhow to get the message for window show? Pin
zecodela2-Dec-03 20:57
zecodela2-Dec-03 20:57 
AnswerRe: how to get the message for window show? Pin
BaldwinMartin2-Dec-03 22:50
BaldwinMartin2-Dec-03 22:50 
Generalscrolling logic Pin
R. Thomas2-Dec-03 20:48
R. Thomas2-Dec-03 20:48 
Questionmapping mode prob? Pin
R. Thomas2-Dec-03 20:40
R. Thomas2-Dec-03 20:40 
QuestionHow do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
dowa2-Dec-03 19:53
dowa2-Dec-03 19:53 
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
Anonymous2-Dec-03 21:33
Anonymous2-Dec-03 21:33 
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
BaldwinMartin2-Dec-03 23:01
BaldwinMartin2-Dec-03 23:01 
Create an ovcerload for sprintf in your project.
In stdio.h sprintf has only one prototype so

int CYourAppSDI::sprintf(CString str)
{

}

would work or
int CYourAppSDI::sprintf(int nVar)
{

}
would work or

int CYourAppSDI::sprintf(CString str,int nVar)
{

}
would work right?

Now their are some good replacements for sprintf on this site and others.
So all you have to do is write or copy the code inside your overload.

Best Wishes and Happy Holiday's,
ez_way
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
David Crow3-Dec-03 3:39
David Crow3-Dec-03 3:39 
AnswerRe: How do I make wrapper funtion such as "sprintf" without using "va_arg"? Pin
Tim Smith3-Dec-03 4:24
Tim Smith3-Dec-03 4:24 
GeneralGetUserName() fails in ATL COM object Pin
bryces2-Dec-03 19:47
bryces2-Dec-03 19:47 
GeneralRe: GetUserName() fails in ATL COM object Pin
Michael P Butler2-Dec-03 20:20
Michael P Butler2-Dec-03 20:20 
GeneralRe: GetUserName() fails in ATL COM object Pin
bryces2-Dec-03 21:09
bryces2-Dec-03 21:09 
GeneralRe: GetUserName() fails in ATL COM object Pin
BaldwinMartin2-Dec-03 23:21
BaldwinMartin2-Dec-03 23:21 
Generalgripper in top left corner of resiable combo box Pin
Suneet Chandok2-Dec-03 19:08
Suneet Chandok2-Dec-03 19:08 
GeneralDisplay a MessageBox in CDialog::OnActivate() Pin
Chris Ormerod2-Dec-03 18:16
Chris Ormerod2-Dec-03 18:16 
GeneralRe: Display a MessageBox in CDialog::OnActivate() Pin
Chris Ormerod2-Dec-03 18:22
Chris Ormerod2-Dec-03 18:22 
GeneralQuestion regarding inheritance Pin
lsanil2-Dec-03 17:24
lsanil2-Dec-03 17:24 
GeneralRe: Question regarding inheritance Pin
Christian Graus2-Dec-03 17:29
protectorChristian Graus2-Dec-03 17:29 
GeneralRe: Question regarding inheritance Pin
lsanil2-Dec-03 18:57
lsanil2-Dec-03 18:57 
GeneralRe: Question regarding inheritance Pin
lsanil2-Dec-03 19:05
lsanil2-Dec-03 19:05 
QuestionCFormView: adding a CHeaderCtrl? Pin
ckorda2-Dec-03 16:48
ckorda2-Dec-03 16:48 
AnswerRe: CFormView: adding a CHeaderCtrl? Pin
Monty22-Dec-03 19:09
Monty22-Dec-03 19:09 
GeneralRe: CFormView: adding a CHeaderCtrl? Pin
ckorda4-Dec-03 11:43
ckorda4-Dec-03 11:43 
GeneralRe: CFormView: adding a CHeaderCtrl? Pin
Monty25-Dec-03 20:28
Monty25-Dec-03 20:28 

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.