Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Can we access session cookies from C++/VC++ code? Pin
David Crow16-Sep-09 6:59
David Crow16-Sep-09 6:59 
AnswerRe: Can we access session cookies from C++/VC++ code? Pin
sarat16-Sep-09 8:16
sarat16-Sep-09 8:16 
GeneralRe: Can we access session cookies from C++/VC++ code? Pin
David Crow16-Sep-09 8:19
David Crow16-Sep-09 8:19 
GeneralRe: Can we access session cookies from C++/VC++ code? Pin
sarat22-Sep-09 23:52
sarat22-Sep-09 23:52 
GeneralRe: Can we access session cookies from C++/VC++ code? Pin
David Crow23-Sep-09 2:53
David Crow23-Sep-09 2:53 
GeneralRe: Can we access session cookies from C++/VC++ code? Pin
sarat23-Sep-09 20:43
sarat23-Sep-09 20:43 
QuestionODBC- too long text trnasmition problem Pin
Rafix11114-Sep-09 2:57
Rafix11114-Sep-09 2:57 
AnswerRe: ODBC- too long text trnasmition problem Pin
David Crow14-Sep-09 4:26
David Crow14-Sep-09 4:26 
GeneralRe: ODBC- too long text trnasmition problem Pin
Rafix11114-Sep-09 7:23
Rafix11114-Sep-09 7:23 
GeneralRe: ODBC- too long text trnasmition problem Pin
David Crow14-Sep-09 7:30
David Crow14-Sep-09 7:30 
GeneralRe: ODBC- too long text trnasmition problem Pin
Rafix11114-Sep-09 9:35
Rafix11114-Sep-09 9:35 
QuestionSet property of folder? Pin
Arrin14-Sep-09 1:58
Arrin14-Sep-09 1:58 
AnswerRe: Set property of folder? Pin
Iain Clarke, Warrior Programmer14-Sep-09 2:23
Iain Clarke, Warrior Programmer14-Sep-09 2:23 
GeneralRe: Set property of folder? Pin
Arrin14-Sep-09 3:00
Arrin14-Sep-09 3:00 
GeneralRe: Set property of folder? Pin
Iain Clarke, Warrior Programmer14-Sep-09 3:20
Iain Clarke, Warrior Programmer14-Sep-09 3:20 
Questionvsnprintf() Pin
shriniwas198514-Sep-09 1:52
shriniwas198514-Sep-09 1:52 
AnswerRe: vsnprintf() Pin
David Crow14-Sep-09 3:35
David Crow14-Sep-09 3:35 
GeneralRe: vsnprintf() Pin
shriniwas198514-Sep-09 4:40
shriniwas198514-Sep-09 4:40 
GeneralRe: vsnprintf() Pin
norish14-Sep-09 7:32
norish14-Sep-09 7:32 
AnswerRe: vsnprintf() Pin
Joe Woodbury14-Sep-09 8:08
professionalJoe Woodbury14-Sep-09 8:08 
AnswerRe: vsnprintf() Pin
Member 419459314-Sep-09 9:07
Member 419459314-Sep-09 9:07 
You say that this is YOUR function to post an error message, thus it is assumed that it is YOUR code that is calling this function. I would suggest that you examine all calls to SetErrorInfo in YOUR code to insure that they supply parameters for each '%' in the format string.

There is not a built in way to check the number of arguments pushed on the stack for a call.

There is a messy way to do this, but it involves modifying all code that calls SetErrorInfo, and this amounts to the same effort (only more so) as to examine all the calls to SetErrorInfo. You could drop into ASM and push a flag value (__ASM mov eax,0x012345678 __ASM push eax) just before making the call to SetErrorInfo, make the call, then erase the flag upon return by dropping into ASM again (__ASM add esp,4). Inside SetErrorInfo you could examine the stack by dropping into ASM and check if the flag value immediately followed the format or was found too close to the format argument for the number of '%' characters in the format string. First you have to verify that a format string has actually been passed (and not a NULL argument), then that the string contains % characters, etc, etc, etc. Messy, messy, messy! Just examine all calls to SetErrorInfo.

Dave.
QuestionI have to insert value into table at runtime ? Pin
jadhavjitendrar14-Sep-09 0:26
jadhavjitendrar14-Sep-09 0:26 
AnswerRe: I have to insert value into table at runtime ? Pin
«_Superman_»14-Sep-09 0:44
professional«_Superman_»14-Sep-09 0:44 
GeneralRe: I have to insert value into table at runtime ? Pin
jadhavjitendrar14-Sep-09 0:48
jadhavjitendrar14-Sep-09 0:48 
GeneralRe: I have to insert value into table at runtime ? Pin
jadhavjitendrar14-Sep-09 2:24
jadhavjitendrar14-Sep-09 2:24 

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.