Click here to Skip to main content
16,011,950 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GOT it Pin
18-Jan-01 4:59
suss18-Jan-01 4:59 
GeneralDetect Ie download from another application Pin
Tom K17-Jan-01 5:27
Tom K17-Jan-01 5:27 
GeneralRe: Detect Ie download from another application Pin
Ghazi H. Wadi18-Jan-01 4:11
Ghazi H. Wadi18-Jan-01 4:11 
GeneralNeed Help with using CString to read string registry keys Pin
eric kaminski17-Jan-01 4:41
eric kaminski17-Jan-01 4:41 
GeneralRe: Need Help with using CString to read string registry keys Pin
Jim Howard17-Jan-01 6:04
Jim Howard17-Jan-01 6:04 
GeneralRe: Need Help with using CString to read string registry keys Pin
eric kaminski17-Jan-01 6:19
eric kaminski17-Jan-01 6:19 
GeneralRe: Need Help with using CString to read string registry keys Pin
David Fedolfi17-Jan-01 7:34
David Fedolfi17-Jan-01 7:34 
GeneralUsing CreateThread with ThreadProc as a member function Pin
17-Jan-01 3:18
suss17-Jan-01 3:18 
Hi,

I'd trying to spawn a thread from my class, and want the threadproc function to be a member function of the class.

I have defined the member function like this:

class MyClass
{
DWORD WINAPI ThreadProc(.......
.........

and the procedure that contains CreateThread is like this:

myhandle=CreateThread(...,ThreadProc,...);

It won't even compile... i get this error:

cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *)(void *)

I don't want to use MFC in this app- trying to stick just to api functions. hence CreateThread().

I tried adding __stdcall, and also extern "C" to my function definition but to no avail.

I dont really understand this problem very well, any help would be much appreciated.

Thanks


Jon Hulatt Poke tongue | ;-P
GeneralRe: Using CreateThread with ThreadProc as a member function Pin
Ghazi H. Wadi17-Jan-01 3:46
Ghazi H. Wadi17-Jan-01 3:46 
GeneralRe: Using CreateThread with ThreadProc as a member function Pin
17-Jan-01 4:46
suss17-Jan-01 4:46 
GeneralRe: Using CreateThread with ThreadProc as a member function Pin
Erik Funkenbusch17-Jan-01 9:52
Erik Funkenbusch17-Jan-01 9:52 
GeneralRe: Using CreateThread with ThreadProc as a member function Pin
Tim Deveaux18-Jan-01 13:18
Tim Deveaux18-Jan-01 13:18 
GeneralMultiline List On WinCE Pin
17-Jan-01 2:54
suss17-Jan-01 2:54 
GeneralCPropertysheet and titles Pin
Kevin Gutteridge16-Jan-01 23:57
Kevin Gutteridge16-Jan-01 23:57 
GeneralRe: CPropertysheet and titles Pin
17-Jan-01 1:13
suss17-Jan-01 1:13 
GeneralRe: CPropertysheet and titles Pin
Kevin Gutteridge17-Jan-01 6:24
Kevin Gutteridge17-Jan-01 6:24 
GeneralRe: CPropertysheet and titles Pin
David Fedolfi17-Jan-01 6:37
David Fedolfi17-Jan-01 6:37 
GeneralRe: CPropertysheet and titles Pin
Kevin Gutteridge18-Jan-01 0:15
Kevin Gutteridge18-Jan-01 0:15 
GeneralReport Writer Pin
16-Jan-01 22:29
suss16-Jan-01 22:29 
Generalconstant String Memory Usage Pin
16-Jan-01 19:15
suss16-Jan-01 19:15 
GeneralRe: constant String Memory Usage Pin
Walter Gildersleeve18-Jan-01 1:05
Walter Gildersleeve18-Jan-01 1:05 
GeneralRe: constant String Memory Usage Pin
Jim Howard18-Jan-01 5:20
Jim Howard18-Jan-01 5:20 
GeneralRe: constant String Memory Usage Pin
Ghazi H. Wadi18-Jan-01 6:30
Ghazi H. Wadi18-Jan-01 6:30 
GeneralRe: constant String Memory Usage Pin
Jim Howard18-Jan-01 6:50
Jim Howard18-Jan-01 6:50 
GeneralRe: constant String Memory Usage Pin
Ghazi H. Wadi18-Jan-01 7:22
Ghazi H. Wadi18-Jan-01 7:22 

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.