Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memory management utilization probz!!!!! Pin
namaskaaram8-Mar-05 16:32
namaskaaram8-Mar-05 16:32 
GeneralRe: memory management utilization probz!!!!! Pin
David Crow7-Mar-05 10:52
David Crow7-Mar-05 10:52 
GeneralMouse Cursor Hot Spot Pin
User 1026746-Mar-05 16:29
User 1026746-Mar-05 16:29 
GeneralRe: Mouse Cursor Hot Spot Pin
PJ Arends6-Mar-05 16:35
professionalPJ Arends6-Mar-05 16:35 
GeneralMessage Closed Pin
6-Mar-05 16:45
User 1026746-Mar-05 16:45 
GeneralRe: Mouse Cursor Hot Spot Pin
PJ Arends6-Mar-05 18:03
professionalPJ Arends6-Mar-05 18:03 
GeneralCompilation from script Pin
Anonymous6-Mar-05 3:31
Anonymous6-Mar-05 3:31 
Generaltray icons disappearing Pin
Kevin Tambascio6-Mar-05 3:09
Kevin Tambascio6-Mar-05 3:09 
GeneralCListCtrl Pin
super_pointer6-Mar-05 2:38
super_pointer6-Mar-05 2:38 
GeneralRe: CListCtrl Pin
PJ Arends6-Mar-05 12:26
professionalPJ Arends6-Mar-05 12:26 
GeneralRe: CListCtrl Pin
super_pointer6-Mar-05 14:58
super_pointer6-Mar-05 14:58 
GeneralRe: CListCtrl Pin
PJ Arends6-Mar-05 16:29
professionalPJ Arends6-Mar-05 16:29 
GeneralRe: CListCtrl Pin
ThatsAlok6-Mar-05 19:55
ThatsAlok6-Mar-05 19:55 
GeneralNon blocking socket problem Pin
eli150219796-Mar-05 0:54
eli150219796-Mar-05 0:54 
GeneralRe: Non blocking socket problem Pin
Mike Dimmick6-Mar-05 1:39
Mike Dimmick6-Mar-05 1:39 
Generalresponses will be Rendering Page Flip effect Pin
Shahzaib Saleem6-Mar-05 0:54
Shahzaib Saleem6-Mar-05 0:54 
QuestionHow to use compiled help in VS NET? Pin
IlanTal6-Mar-05 0:30
IlanTal6-Mar-05 0:30 
AnswerRe: How to use compiled help in VS NET? Pin
Mike Dimmick6-Mar-05 1:47
Mike Dimmick6-Mar-05 1:47 
GeneralRe: How to use compiled help in VS NET? Pin
IlanTal6-Mar-05 18:20
IlanTal6-Mar-05 18:20 
GeneralPassing parameters to CreateThread() Pin
Nikhil Wason5-Mar-05 19:29
Nikhil Wason5-Mar-05 19:29 
suppose i have a class as follows:

class X
{
HANDLE hThread;

public:
X();
UINT ThreadProc(LPVOID lpVoid);
};

now in the constructor X(), i call the function CreateThread() as follows:

hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ThreadProc,NULL,0,NULL);

i get the following error:
error C2440: 'type cast' : cannot convert from 'overloaded-function' to 'LPTHREAD_START_ROUTINE'

Even if i do the following, i get the same error

hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)(X::ThreadProc),NULL,0,NULL);

I dont want to use a global function ThreadProc() because i want to access data members of the current object of the class X. So even using friend wont help in this case. Even passing of parameter to ThreadProc LPVOID parameter results in certain type incompatibilities.

Any workarounds ??
Please Help..


Nikhil
GeneralRe: Passing parameters to CreateThread() Pin
Lim Bio Liong5-Mar-05 22:42
Lim Bio Liong5-Mar-05 22:42 
GeneralRe: Passing parameters to CreateThread() Pin
Lim Bio Liong5-Mar-05 22:50
Lim Bio Liong5-Mar-05 22:50 
GeneralRe: Passing parameters to CreateThread() Pin
Michael Dunn6-Mar-05 4:24
sitebuilderMichael Dunn6-Mar-05 4:24 
GeneralMFC & GDI+ Pin
Chis MU5-Mar-05 16:20
Chis MU5-Mar-05 16:20 
Generalplease I need help Pin
waway5-Mar-05 14:05
waway5-Mar-05 14:05 

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.