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

C / C++ / MFC

 
AnswerRe: Difference between WIN32 Application and WIN32 Console Application wizard Pin
Alton Williams17-May-06 3:00
Alton Williams17-May-06 3:00 
QuestionRe: Difference between WIN32 Application and WIN32 Console Application wizard Pin
David Crow17-May-06 3:22
David Crow17-May-06 3:22 
QuestionOutlook _ContactItem Display() function Pin
mhammans16-May-06 23:33
mhammans16-May-06 23:33 
QuestionAccessing values from dialog window Pin
VinayCool16-May-06 23:32
VinayCool16-May-06 23:32 
AnswerRe: Accessing values from dialog window Pin
Cedric Moonen16-May-06 23:50
Cedric Moonen16-May-06 23:50 
GeneralRe: Accessing values from dialog window Pin
VinayCool17-May-06 2:21
VinayCool17-May-06 2:21 
GeneralRe: Accessing values from dialog window Pin
Russell'17-May-06 3:24
Russell'17-May-06 3:24 
GeneralRe: Accessing values from dialog window Pin
VinayCool17-May-06 20:17
VinayCool17-May-06 20:17 
Hi _Russell_,

Thanks for the wondeful reply and thanks a lot for giveing lot of information.

I am very much new to VC++ and threds ,i just learned threads by some sample notes i am really very new to it ...

can u please tell me how i have access the values in the thread without any problem can u please tell me with some examples or some code please..



BOOL CStatusDlg::OnInitDialog()
{
CDialog::OnInitDialog();

m_ctrlSNAME.SetWindowText(sfile);
m_ctrlSLOCATION.SetWindowText(slocation);

CString str;

HANDLE hr;
hr = CreateThread(NULL,0,(unsigned long (__stdcall *)(void *))WorkerThreadProc,this,0,0);

return TRUE;
}

--------------------------------------------------------------

UINT WorkerThreadProc(LPVOID Param)
{
CStatusDlg status;

//CString loc = status.slocation + status.sfile;
char * d =(char *) (LPCTSTR) loc;


return true;
}

------------------------------------------------------------
please give me some solution so that i can access values from InitDialog and ican use them in Thread.

will be watiing for your responce...
AnswerRe: Accessing values from dialog window Pin
VinayCool17-May-06 21:19
VinayCool17-May-06 21:19 
AnswerRe: Accessing values from dialog window Pin
David Crow17-May-06 3:25
David Crow17-May-06 3:25 
GeneralRe: Accessing values from dialog window Pin
VinayCool17-May-06 20:19
VinayCool17-May-06 20:19 
AnswerRe: Accessing values from dialog window Pin
VinayCool17-May-06 21:18
VinayCool17-May-06 21:18 
QuestionTitle for customised menu's child menu. Pin
Swati_18816-May-06 23:30
Swati_18816-May-06 23:30 
QuestionFile or Folder Pin
Anil_vvs16-May-06 23:10
Anil_vvs16-May-06 23:10 
AnswerRe: File or Folder Pin
kk.tvm16-May-06 23:12
kk.tvm16-May-06 23:12 
AnswerRe: File or Folder Pin
Mila02516-May-06 23:18
Mila02516-May-06 23:18 
AnswerRe: File or Folder Pin
Cool Ju16-May-06 23:36
Cool Ju16-May-06 23:36 
AnswerRe: File or Folder Pin
Hamid_RT17-May-06 1:03
Hamid_RT17-May-06 1:03 
QuestionDiff btwn int *p=NULL & int *p=0; ?? Pin
G Haranadh16-May-06 22:49
G Haranadh16-May-06 22:49 
AnswerRe: Diff btwn int *p=NULL & int *p=0; ?? Pin
Cedric Moonen16-May-06 22:56
Cedric Moonen16-May-06 22:56 
AnswerRe: Diff btwn int *p=NULL & int *p=0; ?? Pin
Nibu babu thomas16-May-06 23:00
Nibu babu thomas16-May-06 23:00 
AnswerRe: Diff btwn int *p=NULL & int *p=0; ?? Pin
kk.tvm16-May-06 23:08
kk.tvm16-May-06 23:08 
AnswerRe: Diff btwn int *p=NULL & int *p=0; ?? Pin
Russell'17-May-06 0:19
Russell'17-May-06 0:19 
AnswerRe: Diff btwn int *p=NULL & int *p=0; ?? Pin
Hamid_RT17-May-06 1:08
Hamid_RT17-May-06 1:08 
AnswerRe: Diff btwn int *p=NULL & int *p=0; ?? Pin
Ryan Binns17-May-06 1:39
Ryan Binns17-May-06 1:39 

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.