Click here to Skip to main content
16,015,094 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can i get handle of edit control Pin
Pryabu16-Aug-10 3:25
Pryabu16-Aug-10 3:25 
GeneralRe: How can i get handle of edit control Pin
Cool_Dev16-Aug-10 3:40
Cool_Dev16-Aug-10 3:40 
GeneralRe: How can i get handle of edit control Pin
Pryabu16-Aug-10 3:42
Pryabu16-Aug-10 3:42 
QuestionIXMLDomDocument / IXMLHTTPRequest / Credentials Pin
Steve Thresher16-Aug-10 2:19
Steve Thresher16-Aug-10 2:19 
QuestionCListCtrl Pin
Benjamin Bruno15-Aug-10 22:32
Benjamin Bruno15-Aug-10 22:32 
AnswerRe: CListCtrl Pin
Nuri Ismail15-Aug-10 22:53
Nuri Ismail15-Aug-10 22:53 
AnswerRe: CListCtrl Pin
Essey.Dong16-Aug-10 17:12
Essey.Dong16-Aug-10 17:12 
Questionmfc VC6++ threading Pin
j.v.r.15-Aug-10 14:20
j.v.r.15-Aug-10 14:20 
From PEPE2207:
Hi, Somebody could help me writting a mfc piece of code that throw me the following kind of error:
"C:\PROVIS\Mypro\MyproDlg.cpp(1107) : error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)"

void CMyproDlg::OnStartone() // method controlled by a button
{
// TODO: Add your control notification handler code here
th* str1 = new th; // th is a struct with only one member: struct th { int mya; };
str1->mya = 155;
LPVOID pParam;
pParam=&str1->mya;
AfxBeginThread(MyThreadProc, pParam);
return;
}

UINT CMyproDlg::MyThreadProc(LPVOID pParam) // My controlling function thread
{
static int nXthr=0;
th* pmyintegerintothread = (th*)pParam;
nXthr += pmyintegerintothread->mya;
m_CurrentDate.Format("%d", nXthr); // m_CurrentDate is a edit box variable defined
UpdateData(FALSE);
return 0; //threat completed successfully
}

Thanks in advance.
AnswerRe: mfc VC6++ threading Pin
Richard Andrew x6415-Aug-10 14:59
professionalRichard Andrew x6415-Aug-10 14:59 
AnswerRe: mfc VC6++ threading Pin
Aescleal15-Aug-10 22:01
Aescleal15-Aug-10 22:01 
AnswerRe: mfc VC6++ threading Pin
Eugen Podsypalnikov16-Aug-10 0:55
Eugen Podsypalnikov16-Aug-10 0:55 
AnswerRe: mfc VC6++ threading Pin
David Crow16-Aug-10 3:29
David Crow16-Aug-10 3:29 
QuestionProcess and memory Pin
keloth8715-Aug-10 4:15
keloth8715-Aug-10 4:15 
AnswerRe: Process and memory Pin
Maximilien15-Aug-10 6:07
Maximilien15-Aug-10 6:07 
GeneralRe: Process and memory PinPopular
Tim Craig15-Aug-10 10:48
Tim Craig15-Aug-10 10:48 
GeneralRe: Process and memory Pin
ThatsAlok16-Aug-10 20:15
ThatsAlok16-Aug-10 20:15 
GeneralRe: Process and memory Pin
harold aptroot15-Aug-10 10:56
harold aptroot15-Aug-10 10:56 
GeneralRe: Process and memory PinPopular
Iain Clarke, Warrior Programmer16-Aug-10 1:47
Iain Clarke, Warrior Programmer16-Aug-10 1:47 
GeneralRe: Process and memory Pin
Luc Pattyn16-Aug-10 2:55
sitebuilderLuc Pattyn16-Aug-10 2:55 
GeneralRe: Process and memory Pin
Iain Clarke, Warrior Programmer16-Aug-10 3:10
Iain Clarke, Warrior Programmer16-Aug-10 3:10 
AnswerRe: Process and memory Pin
Steve Thresher16-Aug-10 3:19
Steve Thresher16-Aug-10 3:19 
QuestionChange collapse/expand icons in treeview Pin
Jamie Kenyon15-Aug-10 1:17
Jamie Kenyon15-Aug-10 1:17 
AnswerRe: Change collapse/expand icons in treeview Pin
Richard MacCutchan15-Aug-10 2:15
mveRichard MacCutchan15-Aug-10 2:15 
GeneralMessage Removed Pin
15-Aug-10 9:33
Jamie Kenyon15-Aug-10 9:33 
GeneralRe: Change collapse/expand icons in treeview Pin
Richard MacCutchan15-Aug-10 21:25
mveRichard MacCutchan15-Aug-10 21:25 

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.