Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC: Mouse Right-Click Event to remove and set the black spots in an image from 255 to 0 Pin
Christian Graus20-Sep-04 18:24
protectorChristian Graus20-Sep-04 18:24 
GeneralCListBox formatting Pin
stevieo8420-Sep-04 18:07
stevieo8420-Sep-04 18:07 
GeneralRe: CListBox formatting Pin
Branislav21-Sep-04 1:07
Branislav21-Sep-04 1:07 
Questioncan accelerator keys be intercepted by ActiveX ? Pin
somesoft20-Sep-04 17:11
somesoft20-Sep-04 17:11 
QuestionPassing variables to function called by a thread?!?!?? Pin
Zero_G20-Sep-04 14:37
Zero_G20-Sep-04 14:37 
AnswerRe: Passing variables to function called by a thread?!?!?? Pin
David Crow20-Sep-04 16:56
David Crow20-Sep-04 16:56 
AnswerRe: Passing variables to function called by a thread?!?!?? Pin
stevieo8420-Sep-04 18:20
stevieo8420-Sep-04 18:20 
AnswerRe: Passing variables to function called by a thread?!?!?? Pin
V.20-Sep-04 23:29
professionalV.20-Sep-04 23:29 
Hi,

In our app here @ work I can call a function from inside the main thread or from another thread started by the main thread.

If you're inside your own thread there are no worries. If you want to call your function from another thread it crashes (or at least here it did Smile | :) ) You should pass the instance of your class to the thread and when you want to call your function from that thread post a message to your class saying you want to execute that function.

I'm not sure this is the way to go, but it works. The program doesn't crash anymore (jeej Big Grin | :-D )

You can look things up at CP or MSDN or google.

The reason for this I THINK, is that the threads work on a different part of memory or something like that.

Good luck.

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
QuestionWhy public destructors? Pin
Anonymous20-Sep-04 11:16
Anonymous20-Sep-04 11:16 
AnswerRe: Why public destructors? Pin
Christian Graus20-Sep-04 11:30
protectorChristian Graus20-Sep-04 11:30 
GeneralRe: Why public destructors? Pin
Anonymous20-Sep-04 11:53
Anonymous20-Sep-04 11:53 
GeneralRe: Why public destructors? Pin
Jörgen Sigvardsson20-Sep-04 13:22
Jörgen Sigvardsson20-Sep-04 13:22 
GeneralRe: Why public destructors? Pin
Christian Graus20-Sep-04 16:16
protectorChristian Graus20-Sep-04 16:16 
GeneralHelp with CTreeCtrl TVS_HASBUTTONS vs NM_CLICK Pin
Cedar Sith20-Sep-04 11:00
Cedar Sith20-Sep-04 11:00 
GeneralRe: Help with CTreeCtrl TVS_HASBUTTONS vs NM_CLICK Pin
Aamir Butt20-Sep-04 22:16
Aamir Butt20-Sep-04 22:16 
GeneralRe: Help with CTreeCtrl TVS_HASBUTTONS vs NM_CLICK Pin
Cedar Sith21-Sep-04 8:40
Cedar Sith21-Sep-04 8:40 
GeneralRe: Help with CTreeCtrl TVS_HASBUTTONS vs NM_CLICK Pin
RChin21-Sep-04 0:35
RChin21-Sep-04 0:35 
GeneralMFC/VBA question Pin
mdave20-Sep-04 10:44
mdave20-Sep-04 10:44 
GeneralRe: MFC/VBA question Pin
User 58385220-Sep-04 20:27
User 58385220-Sep-04 20:27 
GeneralRe: MFC/VBA question Pin
RChin21-Sep-04 0:45
RChin21-Sep-04 0:45 
GeneralRe: MFC/VBA question Pin
RChin21-Sep-04 0:46
RChin21-Sep-04 0:46 
GeneralUrgent... help needed... Image format conversion into BMP format in vc++ Pin
Kiran Satish20-Sep-04 10:26
Kiran Satish20-Sep-04 10:26 
GeneralRe: Not much help but... Pin
Budric B.20-Sep-04 10:41
Budric B.20-Sep-04 10:41 
GeneralRe: Not much help but... Pin
Kiran Satish20-Sep-04 10:51
Kiran Satish20-Sep-04 10:51 
GeneralRe: Not much help but... Pin
Christian Graus20-Sep-04 11:13
protectorChristian Graus20-Sep-04 11:13 

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.