Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shared memory between two different process Pin
Mohammad Khodaea17-Mar-09 2:12
Mohammad Khodaea17-Mar-09 2:12 
GeneralRe: Shared memory between two different process Pin
Cedric Moonen17-Mar-09 2:31
Cedric Moonen17-Mar-09 2:31 
AnswerRe: Shared memory between two different process Pin
Stuart Dootson17-Mar-09 8:48
professionalStuart Dootson17-Mar-09 8:48 
QuestionCAnimateCtrl stucks, how to do it threaded? Pin
Erik16-Mar-09 21:50
Erik16-Mar-09 21:50 
AnswerRe: CAnimateCtrl stucks, how to do it threaded? Pin
Cedric Moonen16-Mar-09 21:57
Cedric Moonen16-Mar-09 21:57 
GeneralRe: CAnimateCtrl stucks, how to do it threaded? Pin
Erik17-Mar-09 3:03
Erik17-Mar-09 3:03 
GeneralRe: CAnimateCtrl stucks, how to do it threaded? Pin
Cedric Moonen17-Mar-09 3:08
Cedric Moonen17-Mar-09 3:08 
QuestionStrange problem with errno modification while using sprintf call. Pin
Gajendra Sharma16-Mar-09 21:32
Gajendra Sharma16-Mar-09 21:32 
Hello,

I am facing a strange problem in my c Windows application sigle-threaded, using VS2008 compiler.
errno is used after system calls to identfiy if any error occured. I have placed checks in my code at various places to know if any exception has occured during a flow.
In one of the function, At the beginning of a code block I check for errno occured in previous code block, if errno is zero, the normal flow continues. If errno is non-zero, nothing is done and the function returns with errno.

Now, i found out a strange issue, errno that is initialized to 0 at the start of the function, changes its value to 9 after doing a sprintf call. sprintf call is successfull though. Another strange thing about it is that this happens only when the exe is run as service on Windows Vista. If the same exe is run from Visual Studio debugger, this behavior doesn't happen when exe runs from VS directly in either release or debug mode.

I can not comprehend the behavior, any help will be appreciated.

Thanks.
Gajendra

Gajendra

AnswerRe: Strange problem with errno modification while using sprintf call. Pin
Gajendra Sharma18-Mar-09 22:52
Gajendra Sharma18-Mar-09 22:52 
GeneralRe: Strange problem with errno modification while using sprintf call. Pin
Gajendra Sharma23-Mar-09 21:51
Gajendra Sharma23-Mar-09 21:51 
QuestionCan I add an AVI file as a resource in VS 2005? Pin
Erik16-Mar-09 21:05
Erik16-Mar-09 21:05 
AnswerRe: Can I add an AVI file as a resource in VS 2005? Pin
Jijo.Raj16-Mar-09 22:03
Jijo.Raj16-Mar-09 22:03 
QuestionIn the Function when Caller is change Type the Function solution will go change Pin
jeansea16-Mar-09 21:03
jeansea16-Mar-09 21:03 
AnswerRe: In the Function when Caller is change Type the Function solution will go change Pin
Jijo.Raj16-Mar-09 22:18
Jijo.Raj16-Mar-09 22:18 
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
jeansea16-Mar-09 23:42
jeansea16-Mar-09 23:42 
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
Jijo.Raj17-Mar-09 1:30
Jijo.Raj17-Mar-09 1:30 
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
jeansea17-Mar-09 7:06
jeansea17-Mar-09 7:06 
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
Stuart Dootson17-Mar-09 8:52
professionalStuart Dootson17-Mar-09 8:52 
QuestionCppUnit 1.12.1 compile error Pin
Sreedevi Jagannath16-Mar-09 19:25
Sreedevi Jagannath16-Mar-09 19:25 
AnswerRe: CppUnit 1.12.1 compile error Pin
Member 47566756-Aug-09 5:50
Member 47566756-Aug-09 5:50 
Questionhow to scroll client area of Dialog Pin
hemlat16-Mar-09 19:06
hemlat16-Mar-09 19:06 
AnswerRe: how to scroll client area of Dialog Pin
Hamid_RT16-Mar-09 19:50
Hamid_RT16-Mar-09 19:50 
QuestionChanging the Length of String from 8-Bits to 16-Bits Number Pin
Neelesh K J Jain16-Mar-09 11:33
Neelesh K J Jain16-Mar-09 11:33 
AnswerRe: Changing the Length of String from 8-Bits to 16-Bits Number Pin
CPallini16-Mar-09 11:43
mveCPallini16-Mar-09 11:43 
QuestionRe: Changing the Length of String from 8-Bits to 16-Bits Number Pin
led mike16-Mar-09 11:54
led mike16-Mar-09 11:54 

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.