Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChanging caption of static control at run time Pin
BiswaR2-Feb-06 5:31
BiswaR2-Feb-06 5:31 
AnswerRe: Changing caption of static control at run time Pin
Iain Clarke, Warrior Programmer2-Feb-06 6:03
Iain Clarke, Warrior Programmer2-Feb-06 6:03 
GeneralRe: Changing caption of static control at run time Pin
BiswaR2-Feb-06 21:31
BiswaR2-Feb-06 21:31 
AnswerRe: Changing caption of static control at run time Pin
RChin2-Feb-06 6:05
RChin2-Feb-06 6:05 
AnswerRe: Changing caption of static control at run time Pin
Andre xxxxxxx2-Feb-06 6:36
Andre xxxxxxx2-Feb-06 6:36 
QuestionStatus bar, Tool bar, invalid handle problem Pin
StelzbocK2-Feb-06 5:30
StelzbocK2-Feb-06 5:30 
AnswerRe: Status bar, Tool bar, invalid handle problem Pin
Iain Clarke, Warrior Programmer2-Feb-06 6:01
Iain Clarke, Warrior Programmer2-Feb-06 6:01 
GeneralRe: Status bar, Tool bar, invalid handle problem Pin
StelzbocK2-Feb-06 6:36
StelzbocK2-Feb-06 6:36 
Thanks!

I haven't try it, but your answers 0 + 1 should work for my problem!

answer 3a:

Yes the handle was created by CreateFile and as I posted before it is tested against INVALID_HANDLE_VALUE. I meant that the serial_unit object is tested against null. I debugged it and the handle has a value of somthing like 0xefffefff. The INVALID_HANDLE_VALUE is a defined constant not equal to that garbage handle in this case. And I set it to INVALID_HANDLE_VALUE after all CloseFile occurancies. The problem is, that the pointer is wrong so the object is filled with garbage data an so is the attribute serial_handle. I need to know how the CloseHandle function knows why the handle is invalid so I can avoid calling CloseHandle if the handle is invalid.

3c: I already use critical section with my handler, but the serial_handle is not static so there is no problem. Each thread has its own handle.

I know there must be another error concerning my pointer handling, but I really tried hard to debug and find it so I'm searchen for an alternative Wink | ;)

Thanks!
QuestionLib Files that we use Pin
kanduripavan2-Feb-06 5:25
kanduripavan2-Feb-06 5:25 
AnswerRe: Lib Files that we use Pin
Chris Losinger2-Feb-06 8:28
professionalChris Losinger2-Feb-06 8:28 
QuestionMultiple documents and multiple views for each Pin
Andre xxxxxxx2-Feb-06 5:08
Andre xxxxxxx2-Feb-06 5:08 
AnswerRe: Multiple documents and multiple views for each Pin
Iain Clarke, Warrior Programmer2-Feb-06 5:24
Iain Clarke, Warrior Programmer2-Feb-06 5:24 
GeneralRe: Multiple documents and multiple views for each Pin
Andre xxxxxxx2-Feb-06 6:11
Andre xxxxxxx2-Feb-06 6:11 
QuestionNetworking Pin
Girish6012-Feb-06 3:13
Girish6012-Feb-06 3:13 
QuestionRe: Networking Pin
David Crow2-Feb-06 4:56
David Crow2-Feb-06 4:56 
QuestionDynamic memory allocation in MFC Pin
Odiee2-Feb-06 1:33
Odiee2-Feb-06 1:33 
AnswerRe: Dynamic memory allocation in MFC Pin
Maximilien2-Feb-06 2:47
Maximilien2-Feb-06 2:47 
QuestionSB_THUMBTRACK in ListCtrl Pin
Nishad S2-Feb-06 0:21
Nishad S2-Feb-06 0:21 
AnswerRe: SB_THUMBTRACK in ListCtrl Pin
Jagadeesh VN2-Feb-06 0:51
Jagadeesh VN2-Feb-06 0:51 
GeneralRe: SB_THUMBTRACK in ListCtrl Pin
Nishad S2-Feb-06 1:01
Nishad S2-Feb-06 1:01 
QuestionRe: SB_THUMBTRACK in ListCtrl Pin
David Crow2-Feb-06 4:59
David Crow2-Feb-06 4:59 
AnswerRe: SB_THUMBTRACK in ListCtrl Pin
PJ Arends2-Feb-06 6:53
professionalPJ Arends2-Feb-06 6:53 
GeneralRe: SB_THUMBTRACK in ListCtrl Pin
Nishad S2-Feb-06 16:56
Nishad S2-Feb-06 16:56 
QuestionProblem in compiling in debug mode with msxml2.lib Pin
kanduripavan2-Feb-06 0:10
kanduripavan2-Feb-06 0:10 
AnswerRe: Problem in compiling in debug mode with msxml2.lib Pin
Taka Muraoka2-Feb-06 1:34
Taka Muraoka2-Feb-06 1:34 

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.