Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Checking if an edit control is empty. Pin
PJ Arends26-Sep-03 16:14
professionalPJ Arends26-Sep-03 16:14 
GeneralStuffing four byte octets into a dword. Pin
esepich26-Sep-03 14:31
esepich26-Sep-03 14:31 
GeneralRe: Stuffing four byte octets into a dword. Pin
LunaticFringe26-Sep-03 14:44
LunaticFringe26-Sep-03 14:44 
GeneralRe: Stuffing four byte octets into a dword. Pin
Stefan Pedersen26-Sep-03 14:51
Stefan Pedersen26-Sep-03 14:51 
GeneralRe: Stuffing four byte octets into a dword. Pin
Abin26-Sep-03 18:46
Abin26-Sep-03 18:46 
GeneralHaving trouble with header files Pin
Flack26-Sep-03 13:51
Flack26-Sep-03 13:51 
GeneralRe: Having trouble with header files Pin
Stefan Pedersen26-Sep-03 14:44
Stefan Pedersen26-Sep-03 14:44 
GeneralThread Classes Pin
ase454226-Sep-03 12:31
ase454226-Sep-03 12:31 
Is there anyway of creating win32 threads and have them point to a class method. Such as:

#include "GpsControl.h"
#define WINAPI __stdcall

GpsControl::GpsControl()
{thread_handle = CreateThread(NULL,0,&GpsControl::GpsProc,NULL,CREATE_SUSPENDED,&threadID);}

unsigned long WINAPI GpsControl::GpsProc(void *)
{return (unsigned long) 2;}

I keep getting this error:
C:\kbrown\quat\GpsTest\GpsControl.cpp(8) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (__stdcall GpsControl::*)(void *)' to 'unsigned long (__stdcall *)(void *)'

I really need the thread to use this function. Any Help would be MUCH appreciated.

DarkStar




Darkstar
GeneralRe: Thread Classes Pin
Michael Dunn26-Sep-03 12:34
sitebuilderMichael Dunn26-Sep-03 12:34 
GeneralRe: Thread Classes Pin
Todd Smith26-Sep-03 14:39
Todd Smith26-Sep-03 14:39 
GeneralTo Remove node using delete key Pin
Binayak26-Sep-03 12:16
Binayak26-Sep-03 12:16 
GeneralRe: To Remove node using delete key Pin
Michael Dunn26-Sep-03 12:32
sitebuilderMichael Dunn26-Sep-03 12:32 
GeneralRe: To Remove node using delete key Pin
Binayak26-Sep-03 12:53
Binayak26-Sep-03 12:53 
GeneralAppWizard, ... no limit to the torment it inflicts. Pin
WREY26-Sep-03 11:18
WREY26-Sep-03 11:18 
GeneralRe: AppWizard, ... no limit to the torment it inflicts. Pin
Joe Woodbury26-Sep-03 12:08
professionalJoe Woodbury26-Sep-03 12:08 
GeneralRe: AppWizard, ... no limit to the torment it inflicts. Pin
WREY26-Sep-03 13:04
WREY26-Sep-03 13:04 
GeneralRe: AppWizard, ... no limit to the torment it inflicts. Pin
Joe Woodbury26-Sep-03 13:16
professionalJoe Woodbury26-Sep-03 13:16 
GeneralDialog not doing MoveWindow right Pin
ns26-Sep-03 10:39
ns26-Sep-03 10:39 
GeneralRe: Dialog not doing MoveWindow right Pin
Ravi Bhavnani26-Sep-03 12:46
professionalRavi Bhavnani26-Sep-03 12:46 
GeneralRe: Dialog not doing MoveWindow right Pin
ns29-Sep-03 3:13
ns29-Sep-03 3:13 
GeneralRe: Dialog not doing MoveWindow right Pin
Ravi Bhavnani29-Sep-03 3:47
professionalRavi Bhavnani29-Sep-03 3:47 
GeneralWhat's wrong with this: Pin
jimNLX26-Sep-03 10:34
jimNLX26-Sep-03 10:34 
GeneralRe: What's wrong with this: Pin
David Crow26-Sep-03 10:35
David Crow26-Sep-03 10:35 
GeneralRe: What's wrong with this: Pin
jimNLX26-Sep-03 10:39
jimNLX26-Sep-03 10:39 
GeneralRe: What's wrong with this: Pin
David Crow26-Sep-03 10:43
David Crow26-Sep-03 10:43 

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.