Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Union question Pin
Antony M Kancidrowski4-Nov-04 8:07
Antony M Kancidrowski4-Nov-04 8:07 
GeneralRe: Union question Pin
Steve Messer4-Nov-04 14:48
Steve Messer4-Nov-04 14:48 
GeneralC++ function pointers Pin
_psh_4-Nov-04 7:57
_psh_4-Nov-04 7:57 
GeneralRe: C++ function pointers Pin
Peter Weyzen4-Nov-04 8:08
Peter Weyzen4-Nov-04 8:08 
GeneralRe: C++ function pointers Pin
Michael Dunn4-Nov-04 12:28
sitebuilderMichael Dunn4-Nov-04 12:28 
GeneralDisabling Scripts in IWebBrowser2 Pin
Member 14952024-Nov-04 7:52
Member 14952024-Nov-04 7:52 
QuestionNULL pContext on Dynamic Window Creation?? Pin
Ali Niaz4-Nov-04 6:57
Ali Niaz4-Nov-04 6:57 
QuestionWhat's wrong with this???? Pin
Tom Wright4-Nov-04 5:49
Tom Wright4-Nov-04 5:49 
I'm trying to create my threads, but when I go to compile this I get an error:

<br />
void CLAMsgSwDlg::StartAllThreads()<br />
{<br />
	int nCount = m_lClientConn.GetItemCount();<br />
<br />
	ThreadInfo *mythreadinfo = new ThreadInfo[nCount];<br />
	for (int i = 0; i < nCount; i++)<br />
	{<br />
		mythreadinfo[i].thdIPaddress = m_lClientConn.GetItemText(i, 0);<br />
		mythreadinfo[i].thdPort = m_lClientConn.GetItemText(i, 1);<br />
<br />
		//Start all threads here.<br />
		CWinThread* pThread = new CWinThread[nCount];<br />
		pThread[i] = AfxBeginThread(myThreadFunc, &mythreadinfo[i]);<br />
<br />
		//Save the handle to the thread<br />
		HANDLE* hThread = new HANDLE[nCount];<br />
		hThread[i] = pThread->m_hThread;<br />
	}<br />
}<br />
<br />
UINT CLAMsgSwDlg::myThreadFunc(LPVOID pParam)<br />
{<br />
	m_sConnectSocket.SetParent(this);<br />
	//if (OnCreate)<br />
	//{<br />
<br />
	//}<br />
	<br />
}<br />
<br />


Can some one tell me what I'm doing wrong here. i get an error "none of the 2 overloads can convert the first parameter"

Thanks


Tom Wright
tawright915@yahoo.com
AnswerRe: What's wrong with this???? Pin
David Crow4-Nov-04 7:41
David Crow4-Nov-04 7:41 
GeneralRe: What's wrong with this???? Pin
Tom Wright4-Nov-04 7:56
Tom Wright4-Nov-04 7:56 
GeneralRe: What's wrong with this???? Pin
Antony M Kancidrowski4-Nov-04 8:24
Antony M Kancidrowski4-Nov-04 8:24 
AnswerRe: What's wrong with this???? Pin
Sujan Christo4-Nov-04 19:55
Sujan Christo4-Nov-04 19:55 
GeneralCurrent directory defining Pin
dudic4-Nov-04 5:27
dudic4-Nov-04 5:27 
GeneralRe: Current directory defining Pin
Tom Wright4-Nov-04 6:12
Tom Wright4-Nov-04 6:12 
GeneralThread question Pin
Tom Wright4-Nov-04 4:12
Tom Wright4-Nov-04 4:12 
GeneralRe: Thread question Pin
lesnikowski4-Nov-04 5:21
lesnikowski4-Nov-04 5:21 
QuestionAdd menu to CDialog? Pin
DanYELL4-Nov-04 4:00
DanYELL4-Nov-04 4:00 
AnswerRe: Add menu to CDialog? Pin
Tom Wright4-Nov-04 4:15
Tom Wright4-Nov-04 4:15 
GeneralScreenshot to .PNG Pin
peterchen4-Nov-04 3:50
peterchen4-Nov-04 3:50 
GeneralSkin on scrollbar of richedit control Pin
verma-rahul4-Nov-04 3:18
verma-rahul4-Nov-04 3:18 
GeneralPath to pdb file in binary Pin
kydfru4-Nov-04 2:51
kydfru4-Nov-04 2:51 
GeneralRe: Path to pdb file in binary Pin
Blake Miller4-Nov-04 6:13
Blake Miller4-Nov-04 6:13 
GeneralRe: Path to pdb file in binary Pin
kydfru4-Nov-04 6:22
kydfru4-Nov-04 6:22 
GeneralRe: Path to pdb file in binary Pin
Blake Miller4-Nov-04 6:32
Blake Miller4-Nov-04 6:32 
GeneralTnaks! Pin
kydfru4-Nov-04 6:53
kydfru4-Nov-04 6:53 

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.