Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionRe: I have to insert value into table at runtime ? Pin
norish14-Sep-09 8:30
norish14-Sep-09 8:30 
QuestionRe: I have to insert value into table at runtime ? Pin
CPallini14-Sep-09 0:45
mveCPallini14-Sep-09 0:45 
Questionneed help for programming PTZ camera Pin
rajapp13-Sep-09 23:09
rajapp13-Sep-09 23:09 
QuestionCut Rectangles in images Pin
Game-point13-Sep-09 22:14
Game-point13-Sep-09 22:14 
AnswerRe: Cut Rectangles in images Pin
CPallini13-Sep-09 22:55
mveCPallini13-Sep-09 22:55 
AnswerRe: Cut Rectangles in images Pin
Game-point13-Sep-09 23:26
Game-point13-Sep-09 23:26 
QuestionHOw can run vlc code Pin
anishkannan13-Sep-09 21:23
anishkannan13-Sep-09 21:23 
AnswerRe: HOw can run vlc code Pin
CPallini13-Sep-09 21:48
mveCPallini13-Sep-09 21:48 
AnswerRe: HOw can run vlc code Pin
Michael Schubert13-Sep-09 21:52
Michael Schubert13-Sep-09 21:52 
GeneralRe: HOw can run vlc code Pin
enhzflep14-Sep-09 4:18
enhzflep14-Sep-09 4:18 
QuestionReg XML reading Pin
hellogany13-Sep-09 21:07
hellogany13-Sep-09 21:07 
AnswerRe: Reg XML reading Pin
Nuri Ismail13-Sep-09 21:20
Nuri Ismail13-Sep-09 21:20 
GeneralRe: Reg XML reading Pin
kilt14-Sep-09 2:14
kilt14-Sep-09 2:14 

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.