Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Could some please post a working example Pin
Curi0us_George6-Mar-04 13:10
Curi0us_George6-Mar-04 13:10 
GeneralRe: Could some please post a working example Pin
MeterMan6-Mar-04 14:04
MeterMan6-Mar-04 14:04 
GeneralRe: Could some please post a working example Pin
Curi0us_George7-Mar-04 12:02
Curi0us_George7-Mar-04 12:02 
GeneralRe: Could some please post a working example Pin
MeterMan7-Mar-04 16:12
MeterMan7-Mar-04 16:12 
GeneralRe: Could some please post a working example Pin
DougW486-Mar-04 22:44
DougW486-Mar-04 22:44 
GeneralRe: Could some please post a working example Pin
MeterMan7-Mar-04 5:28
MeterMan7-Mar-04 5:28 
GeneralRe: Could some please post a working example Pin
DougW487-Mar-04 5:53
DougW487-Mar-04 5:53 
GeneralRe: Could some please post a working example Pin
MeterMan7-Mar-04 6:09
MeterMan7-Mar-04 6:09 
yes it is static. do you have like yahoo or something so it can be more realtime instead of playing message tag Smile | :)
in any event thanks for the help first of all

the portion of my header CCash3mfcDlg.h

static UINT StartThread (LPVOID param);
typedef struct THREADSTRUCT
{
HWND _this;

} THREADSTRUCT;


then here is how i have it implemented so far and not working

UINT CCash3mfcDlg::StartThread(LPVOID param)
{




THREADSTRUCT *ts = new THREADSTRUCT;
CCash3mfcDlg *pdlg;
pdlg = (CCash3mfcDlg*)CWnd::FromHandle(ts->_this);
pdlg->run();



//here is the time-consuming process which interacts with your dialog


return 1;

}



void CCash3mfcDlg::Ongobutton()
{

THREADSTRUCT *_param = new THREADSTRUCT;
_param->_this = GetSafeHwnd();

UpdateData(TRUE);
AfxBeginThread (StartThread,static(_param)); // gives me error c2059: syntax error: '('





}

int CCash3mfcDlg::run()
{
..........
}


Win32newb

"Making windows programs worse than they already are"
GeneralRe: Could some please post a working example Pin
DougW487-Mar-04 6:52
DougW487-Mar-04 6:52 
Generaltoolbar like internet explorer Pin
asher_ungar6-Mar-04 12:32
asher_ungar6-Mar-04 12:32 
GeneralEdit Box data input and output hexadecimal formatted data Pin
Freddie Code6-Mar-04 8:45
Freddie Code6-Mar-04 8:45 
GeneralChange exe file in project Pin
Mazdak6-Mar-04 6:20
Mazdak6-Mar-04 6:20 
GeneralRe: Change exe file in project Pin
Prakash Nadar6-Mar-04 6:31
Prakash Nadar6-Mar-04 6:31 
GeneralRe: Change exe file in project Pin
Mazdak6-Mar-04 7:30
Mazdak6-Mar-04 7:30 
GeneralRe: Change exe file in project Pin
Joe Woodbury6-Mar-04 11:45
professionalJoe Woodbury6-Mar-04 11:45 
GeneralRe: Change exe file in project Pin
Mazdak6-Mar-04 20:00
Mazdak6-Mar-04 20:00 
Generalminimize to system tray Pin
Otty6-Mar-04 6:02
Otty6-Mar-04 6:02 
GeneralRe: minimize to system tray Pin
tn_dang22-Apr-04 3:21
tn_dang22-Apr-04 3:21 
GeneralHelp I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 5:59
MeterMan6-Mar-04 5:59 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Michael Dunn6-Mar-04 6:04
sitebuilderMichael Dunn6-Mar-04 6:04 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Prakash Nadar6-Mar-04 6:29
Prakash Nadar6-Mar-04 6:29 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Michael Dunn6-Mar-04 6:57
sitebuilderMichael Dunn6-Mar-04 6:57 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Prakash Nadar6-Mar-04 7:03
Prakash Nadar6-Mar-04 7:03 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 7:11
MeterMan6-Mar-04 7:11 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Prakash Nadar6-Mar-04 7:26
Prakash Nadar6-Mar-04 7:26 

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.