Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Initialize into const char** Pin
m_mun11-Oct-09 23:43
m_mun11-Oct-09 23:43 
AnswerRe: Initialize into const char** Pin
CPallini12-Oct-09 0:08
mveCPallini12-Oct-09 0:08 
GeneralRe: Initialize into const char** Pin
m_mun12-Oct-09 0:32
m_mun12-Oct-09 0:32 
AnswerRe: Initialize into const char** Pin
«_Superman_»12-Oct-09 8:58
professional«_Superman_»12-Oct-09 8:58 
Question40 bit decimal to binary Pin
Makakuin11-Oct-09 21:03
Makakuin11-Oct-09 21:03 
AnswerRe: 40 bit decimal to binary Pin
CPallini11-Oct-09 22:19
mveCPallini11-Oct-09 22:19 
Questionhow to check if a thread handle is available Pin
Hari_1611-Oct-09 19:49
Hari_1611-Oct-09 19:49 
AnswerRe: how to check if a thread handle is available Pin
Iain Clarke, Warrior Programmer11-Oct-09 20:47
Iain Clarke, Warrior Programmer11-Oct-09 20:47 
And what happens when the thread finishes between checking for calling the CheckThreadAvailability and PostThreadMessage functions?

By it's nature such a function would be useless.

I think you need to go back to your more basic design to address this issue, rather than papering over the cracks.

With multithreading, you have to imagine that you are on a multi code spiteful processor. Anything bad that could possibly happen, will.

Keep track of the thread handles. Even when a thread finishes, the handle is still valid - you need to close it with CloseHandle too. (I think MFC will do that for you, but I don't touch MFC threading with a bargepole. I use Win32 exclusively - better documented).

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]

AnswerRe: how to check if a thread handle is available Pin
CPallini11-Oct-09 22:21
mveCPallini11-Oct-09 22:21 
Questionconvert pdf to tif file in C Pin
billcodes11-Oct-09 18:49
billcodes11-Oct-09 18:49 
AnswerRe: convert pdf to tif file in C Pin
Iain Clarke, Warrior Programmer11-Oct-09 20:55
Iain Clarke, Warrior Programmer11-Oct-09 20:55 
GeneralRe: convert pdf to tif file in C Pin
billcodes11-Oct-09 22:08
billcodes11-Oct-09 22:08 
QuestionRe: convert pdf to tif file in C Pin
CPallini11-Oct-09 22:24
mveCPallini11-Oct-09 22:24 
GeneralRe: convert pdf to tif file in C Pin
Iain Clarke, Warrior Programmer11-Oct-09 22:45
Iain Clarke, Warrior Programmer11-Oct-09 22:45 
GeneralRe: convert pdf to tif file in C Pin
AspDotNetDev15-Oct-09 15:30
protectorAspDotNetDev15-Oct-09 15:30 
GeneralRe: convert pdf to tif file in C Pin
kilt13-Oct-09 2:23
kilt13-Oct-09 2:23 
GeneralRe: convert pdf to tif file in C Pin
Henry Minute13-Oct-09 5:23
Henry Minute13-Oct-09 5:23 
QuestionI want to copy strings,but occur this....."Access to memory errors....",why? Pin
milestanley11-Oct-09 17:32
milestanley11-Oct-09 17:32 
AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
theCPkid11-Oct-09 18:24
theCPkid11-Oct-09 18:24 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Richard MacCutchan11-Oct-09 22:40
mveRichard MacCutchan11-Oct-09 22:40 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
theCPkid11-Oct-09 22:59
theCPkid11-Oct-09 22:59 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Richard MacCutchan11-Oct-09 23:40
mveRichard MacCutchan11-Oct-09 23:40 
AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
carter200011-Oct-09 18:31
carter200011-Oct-09 18:31 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Richard MacCutchan11-Oct-09 22:42
mveRichard MacCutchan11-Oct-09 22:42 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
carter200011-Oct-09 23:09
carter200011-Oct-09 23:09 

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.