Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to add help files into .EXE file Pin
S Douglas9-Dec-06 1:33
professionalS Douglas9-Dec-06 1:33 
QuestionWhat am I doing wrong? Pin
MyFathersSon6-Dec-06 3:30
MyFathersSon6-Dec-06 3:30 
AnswerRe: What am I doing wrong? Pin
Mark Salsbery6-Dec-06 6:26
Mark Salsbery6-Dec-06 6:26 
GeneralRe: What am I doing wrong? Pin
MyFathersSon6-Dec-06 8:47
MyFathersSon6-Dec-06 8:47 
GeneralRe: What am I doing wrong? Pin
Mark Salsbery6-Dec-06 9:16
Mark Salsbery6-Dec-06 9:16 
GeneralRe: What am I doing wrong? Pin
MyFathersSon8-Dec-06 5:44
MyFathersSon8-Dec-06 5:44 
Questionvsprintf and string. Pin
vikramlinux6-Dec-06 2:18
vikramlinux6-Dec-06 2:18 
AnswerRe: vsprintf and string. Pin
Nibu babu thomas6-Dec-06 2:27
Nibu babu thomas6-Dec-06 2:27 
vikrams wrote:
vsprintf(buffer, format, args);


Maybe you are passing a invalid format string. If it's not a valid format string then the behavior is undefined.

Maybe you can modify the above function to look like this...


void __cdecl Log( const char* lpszString, ... )
{
   va_list args;
   va_start(args, lpszString );
   
   int len = vsprintf(buffer, lpszString, args ); // lpszString should be a valid format string.
   va_end(args);
}// End Log


And what is this buffer variable??


Nibu thomas
A Developer

Programming tips[^]  My site[^]

GeneralRe: vsprintf and string. Pin
vikramlinux6-Dec-06 2:36
vikramlinux6-Dec-06 2:36 
Answeruse PRE tags Pin
toxcct6-Dec-06 2:32
toxcct6-Dec-06 2:32 
AnswerRe: vsprintf and string. Pin
prasad_som6-Dec-06 2:36
prasad_som6-Dec-06 2:36 
GeneralRe: vsprintf and string. Pin
vikramlinux6-Dec-06 2:39
vikramlinux6-Dec-06 2:39 
AnswerRe: vsprintf and string. Pin
prasad_som6-Dec-06 2:47
prasad_som6-Dec-06 2:47 
GeneralRe: vsprintf and string. Pin
Zac Howland6-Dec-06 3:29
Zac Howland6-Dec-06 3:29 
GeneralRe: vsprintf and string. Pin
David Crow6-Dec-06 5:27
David Crow6-Dec-06 5:27 
AnswerRe: vsprintf and string. Pin
Stephen Hewitt6-Dec-06 15:17
Stephen Hewitt6-Dec-06 15:17 
QuestionC3861 _L identifier not found Pin
uday kiran janaswamy6-Dec-06 2:01
uday kiran janaswamy6-Dec-06 2:01 
QuestionRe: C3861 _L identifier not found Pin
prasad_som6-Dec-06 2:14
prasad_som6-Dec-06 2:14 
AnswerRe: C3861 _L identifier not found Pin
Cedric Moonen6-Dec-06 2:16
Cedric Moonen6-Dec-06 2:16 
AnswerRe: C3861 _L identifier not found Pin
Nibu babu thomas6-Dec-06 2:18
Nibu babu thomas6-Dec-06 2:18 
QuestionThread exit handler Pin
harsha_12346-Dec-06 1:59
harsha_12346-Dec-06 1:59 
AnswerRe: Thread exit handler Pin
Mark Salsbery6-Dec-06 6:30
Mark Salsbery6-Dec-06 6:30 
Questioncan we have a toolbar on dialog Pin
cancerion6-Dec-06 1:42
cancerion6-Dec-06 1:42 
AnswerRe: can we have a toolbar on dialog Pin
toxcct6-Dec-06 1:46
toxcct6-Dec-06 1:46 
AnswerRe: can we have a toolbar on dialog Pin
Nibu babu thomas6-Dec-06 2:20
Nibu babu thomas6-Dec-06 2: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.