Click here to Skip to main content
16,012,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShadow in custom cursor ? Pin
Koep15-Jul-02 21:47
Koep15-Jul-02 21:47 
GeneralNewbie question:how to copy a file in a project's resource to a targeted directory Pin
Wil15-Jul-02 21:34
Wil15-Jul-02 21:34 
GeneralRe: Newbie question:how to copy a file in a project's resource to a targeted directory Pin
Rage16-Jul-02 1:16
professionalRage16-Jul-02 1:16 
GeneralUsing WebBrowser2 control with MFC Pin
zimbar15-Jul-02 21:18
zimbar15-Jul-02 21:18 
GeneralSupply parameters to a thread Pin
ilgale15-Jul-02 21:16
ilgale15-Jul-02 21:16 
GeneralRe: Supply parameters to a thread Pin
Joaquín M López Muñoz15-Jul-02 21:20
Joaquín M López Muñoz15-Jul-02 21:20 
GeneralRe: Supply parameters to a thread Pin
ilgale15-Jul-02 21:28
ilgale15-Jul-02 21:28 
GeneralRe: Supply parameters to a thread Pin
Joaquín M López Muñoz15-Jul-02 21:32
Joaquín M López Muñoz15-Jul-02 21:32 
I guess the problem is that the data you're passing is allocated on the stack instead of the heap, something like:
MyDataStructure data;
CreateThread(...,&MyDataStructure,...);
The problem with this approach is that data is destroyed as soon as your function existis from the scope the variable is declared in. You will need to allocate the structure in the heap with new (and don't forget to make the thread delete it when no longer needed.)

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Supply parameters to a thread Pin
ilgale15-Jul-02 21:56
ilgale15-Jul-02 21:56 
GeneralRe: Supply parameters to a thread Pin
Daniel Lohmann17-Jul-02 14:38
Daniel Lohmann17-Jul-02 14:38 
GeneralLNK2001, errno and messing with libraries Pin
Janine15-Jul-02 20:59
Janine15-Jul-02 20:59 
GeneralRe: LNK2001, errno and messing with libraries Pin
Daniel Lohmann17-Jul-02 14:46
Daniel Lohmann17-Jul-02 14:46 
GeneralRe: LNK2001, errno and messing with libraries Pin
Janine18-Jul-02 1:19
Janine18-Jul-02 1:19 
QuestionHow to locate crash using mapfiles generated by MsDev Pin
Arvind Kumar15-Jul-02 20:55
Arvind Kumar15-Jul-02 20:55 
AnswerRe: How to locate crash using mapfiles generated by MsDev Pin
567890123415-Jul-02 22:45
567890123415-Jul-02 22:45 
GeneralDirectX editing service problem, help me! Pin
RichardWdy15-Jul-02 20:34
RichardWdy15-Jul-02 20:34 
GeneralHelp Pin
SamirSood15-Jul-02 18:59
SamirSood15-Jul-02 18:59 
GeneralSend Bitmap from ISAPI extension Pin
Don Miguel15-Jul-02 18:58
Don Miguel15-Jul-02 18:58 
GeneralAdd handler for a toolbar button Pin
Anonymous15-Jul-02 18:57
Anonymous15-Jul-02 18:57 
GeneralRe: Add handler for a toolbar button Pin
Fredrik Skog15-Jul-02 20:43
Fredrik Skog15-Jul-02 20:43 
GeneralBitmap Pin
suresh_sathya15-Jul-02 18:40
suresh_sathya15-Jul-02 18:40 
GeneralRe: Bitmap Pin
Christian Graus15-Jul-02 19:03
protectorChristian Graus15-Jul-02 19:03 
GeneralRe: Bitmap Pin
suresh_sathya15-Jul-02 23:52
suresh_sathya15-Jul-02 23:52 
Generalsimple C thread functionality question. Pin
nosherwan15-Jul-02 15:01
nosherwan15-Jul-02 15:01 
GeneralRe: simple C thread functionality question. Pin
Nish Nishant15-Jul-02 15:55
sitebuilderNish Nishant15-Jul-02 15:55 

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.