Click here to Skip to main content
15,893,337 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using a .lib file Pin
Nirav Doshi1-Jun-04 2:50
Nirav Doshi1-Jun-04 2:50 
GeneralRe: using a .lib file Pin
FASTian1-Jun-04 3:16
FASTian1-Jun-04 3:16 
GeneralRe: using a .lib file Pin
David Crow1-Jun-04 3:44
David Crow1-Jun-04 3:44 
GeneralRe: using a .lib file Pin
imposterrific3-Jun-04 9:33
imposterrific3-Jun-04 9:33 
GeneralRe: using a .lib file Pin
David Crow3-Jun-04 10:21
David Crow3-Jun-04 10:21 
GeneralFont Pin
Mike Doner1-Jun-04 2:18
Mike Doner1-Jun-04 2:18 
GeneralRe: Font Pin
Roger Allen1-Jun-04 5:00
Roger Allen1-Jun-04 5:00 
Generalstruct problem Pin
kfaday1-Jun-04 2:13
kfaday1-Jun-04 2:13 
Hello! i have a small problem

in my thread class (called CHilos) i declared as a member variable:

[CODE]
struct Param {
HWND *ventana;
CHilos *hilo;
} *param;[/CODE]

and in my thread 'begin' function i have:

[CODE]
void CHilos::Comenzar(LPVOID lParametro)
{
DWORD handle;
param->ventana = static_cast<hwnd *="">(lParametro);
param->hilo = this;

CreateThread(NULL,0,CHilos::ThreadProc,(LPVOID)param,0,&handle);
}
[/CODE]

and i get a runtime error in both param-> lines. In the createThread i used to pass this instead of param.


[CODE]CreateThread(NULL,0,CHilos::ThreadProc,(LPVOID)this,0,&handle);[/CODE]

what am i doing wrong?
thanks!
GeneralRe: struct problem Pin
jmkhael1-Jun-04 2:42
jmkhael1-Jun-04 2:42 
GeneralRe: struct problem Pin
Nirav Doshi1-Jun-04 2:43
Nirav Doshi1-Jun-04 2:43 
GeneralRe: struct problem Pin
kfaday1-Jun-04 5:35
kfaday1-Jun-04 5:35 
Questionhow can i paste a GIF , BMP or JPEG as background on dialog Pin
Zeeshan Bilal1-Jun-04 1:37
Zeeshan Bilal1-Jun-04 1:37 
AnswerRe: how can i paste a GIF , BMP or JPEG as background on dialog Pin
Anthony_Yio1-Jun-04 1:44
Anthony_Yio1-Jun-04 1:44 
GeneralRe: how can i paste a GIF , BMP or JPEG as background on dialog Pin
Zeeshan Bilal1-Jun-04 1:56
Zeeshan Bilal1-Jun-04 1:56 
Generaldate/time Pin
ozgul1-Jun-04 1:32
ozgul1-Jun-04 1:32 
GeneralRe: date/time Pin
Anthony_Yio1-Jun-04 1:40
Anthony_Yio1-Jun-04 1:40 
GeneralRe: date/time Pin
Zeeshan Bilal1-Jun-04 1:48
Zeeshan Bilal1-Jun-04 1:48 
GeneralMicrosoft Script control Pin
repekcan1-Jun-04 1:28
repekcan1-Jun-04 1:28 
GeneralAccessing Extended ASCII characters in VC++ Pin
Sukumaran K.1-Jun-04 1:19
Sukumaran K.1-Jun-04 1:19 
GeneralRe: Accessing Extended ASCII characters in VC++ Pin
Anthony_Yio1-Jun-04 1:35
Anthony_Yio1-Jun-04 1:35 
GeneralVisual C++ static library creation question Pin
Indrawati1-Jun-04 0:22
Indrawati1-Jun-04 0:22 
GeneralRe: Visual C++ static library creation question Pin
Diddy1-Jun-04 0:48
Diddy1-Jun-04 0:48 
GeneralCapture Keyboard Input Pin
sweep12331-May-04 23:35
sweep12331-May-04 23:35 
GeneralRe: Capture Keyboard Input Pin
Andrew Quinn AUS1-Jun-04 0:33
Andrew Quinn AUS1-Jun-04 0:33 
GeneralRe: Capture Keyboard Input Pin
Diddy1-Jun-04 0:52
Diddy1-Jun-04 0:52 

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.