Click here to Skip to main content
16,016,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: More linker errors Pin
Jose Lamas Rios22-Aug-05 19:30
Jose Lamas Rios22-Aug-05 19:30 
GeneralRe: More linker errors Pin
Christian Graus22-Aug-05 19:36
protectorChristian Graus22-Aug-05 19:36 
GeneralRe: More linker errors Pin
Jose Lamas Rios22-Aug-05 20:06
Jose Lamas Rios22-Aug-05 20:06 
GeneralRe: More linker errors Pin
Christian Graus23-Aug-05 13:14
protectorChristian Graus23-Aug-05 13:14 
GeneralClistCtrl question Pin
Tom Wright22-Aug-05 12:54
Tom Wright22-Aug-05 12:54 
GeneralRe: ClistCtrl question Pin
Jose Lamas Rios22-Aug-05 17:02
Jose Lamas Rios22-Aug-05 17:02 
GeneralRe: ClistCtrl question Pin
Tom Wright23-Aug-05 4:57
Tom Wright23-Aug-05 4:57 
GeneralTrouble passing a class pointer to AfxBeingThread Pin
KnaveR77722-Aug-05 12:49
KnaveR77722-Aug-05 12:49 
Hey all, Im having a problem with passing a var to a function via AfxBeginThread. It appears the function is being called properly, but my data, which is in the form of a pointer to one of my ServerData classes, appears corrupted in the eyes of the thread function (debugger shows data as it should be before call, inside thread function, everything is chaotic).

This is the code the starts the thread (triggered by a CListView message):
<br />
LPVOID ptr = (LPVOID)((ServerData)m_serversList[pNMIA->iItem]); <br />
ServerData* sdat = (ServerData*)ptr;  // debugger shows sdat to be intact<br />
<br />
CWinThread* thread = AfxBeginThread(&queryServer, ptr);<br />


This is performed at the begining of my thread func:
<br />
UINT queryServer(LPVOID pParam ){<br />
ServerData* server = ((ServerData*)pParam);  // the var server has bad data<br />
<br />
...<br />
}<br />


ServerData's LPVOID cast operator is simply defined as:
<br />
return this;<br />


Any ideas?
GeneralRe: Trouble passing a class pointer to AfxBeingThread Pin
MailtoGops22-Aug-05 23:00
MailtoGops22-Aug-05 23:00 
GeneralQ about WINDBG Pin
valerie9922-Aug-05 12:41
valerie9922-Aug-05 12:41 
GeneralRe: Q about WINDBG Pin
Blake Miller23-Aug-05 4:28
Blake Miller23-Aug-05 4:28 
QuestionHow to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 12:03
shanzy22-Aug-05 12:03 
AnswerRe: How to use the WIN32API in MFC Application?? Pin
Christian Graus22-Aug-05 12:40
protectorChristian Graus22-Aug-05 12:40 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 12:50
shanzy22-Aug-05 12:50 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
Christian Graus22-Aug-05 13:03
protectorChristian Graus22-Aug-05 13:03 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 14:01
shanzy22-Aug-05 14:01 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
Christian Graus22-Aug-05 14:03
protectorChristian Graus22-Aug-05 14:03 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 14:08
shanzy22-Aug-05 14:08 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
Christian Graus22-Aug-05 14:10
protectorChristian Graus22-Aug-05 14:10 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 14:26
shanzy22-Aug-05 14:26 
AnswerRe: How to use the WIN32API in MFC Application?? Pin
Jose Lamas Rios22-Aug-05 17:25
Jose Lamas Rios22-Aug-05 17:25 
AnswerRe: How to use the WIN32API in MFC Application?? Pin
ThatsAlok22-Aug-05 20:13
ThatsAlok22-Aug-05 20:13 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 21:49
shanzy22-Aug-05 21:49 
GeneralWMI Pin
YusufK22-Aug-05 10:52
YusufK22-Aug-05 10:52 
GeneralRe: WMI Pin
Christian Graus22-Aug-05 12:02
protectorChristian Graus22-Aug-05 12:02 

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.