Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Strange Pin
baerten27-Aug-07 4:26
baerten27-Aug-07 4:26 
AnswerRe: Strange Pin
Russell'27-Aug-07 4:47
Russell'27-Aug-07 4:47 
GeneralRe: Strange Pin
baerten27-Aug-07 5:12
baerten27-Aug-07 5:12 
AnswerRe: pointer on char array Pin
KarstenK27-Aug-07 4:13
mveKarstenK27-Aug-07 4:13 
GeneralRe: pointer on char array Pin
baerten27-Aug-07 20:59
baerten27-Aug-07 20:59 
QuestionHighlighting a entire row Pin
Sangeetha_J27-Aug-07 3:35
Sangeetha_J27-Aug-07 3:35 
AnswerRe: Highlighting a entire row Pin
Hamid_RT27-Aug-07 3:59
Hamid_RT27-Aug-07 3:59 
QuestionProblem calling a function in RecordView's constructor Pin
__yash__27-Aug-07 3:29
professional__yash__27-Aug-07 3:29 
Hi I need to call OnBconnect() event somewhere in my application initialisation so that i do not need to press the button "Connect".
void CRantView::OnBconnect() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	UpdateData(TRUE);<br />
	m_sConnectSocket1.Create();<br />
	m_sConnectSocket1.Connect(m_strIP1,m_iPort1);<br />
	GetDlgItem(IDC_BCONNECT1)->EnableWindow(TRUE);<br />
}


The idea is that i automatically connect to the socket.

But i get an error something like UpdateData() called before DoModal...similarly for GetDlgItem()
which would be the right place to call this connect-function?? I had tried in View's constructor where i got this error...
AnswerRe: Problem calling a function in RecordView's constructor Pin
David Crow27-Aug-07 3:38
David Crow27-Aug-07 3:38 
GeneralRe: Problem calling a function in RecordView's constructor Pin
__yash__27-Aug-07 3:44
professional__yash__27-Aug-07 3:44 
AnswerRe: Problem calling a function in RecordView's constructor Pin
KarstenK27-Aug-07 4:08
mveKarstenK27-Aug-07 4:08 
GeneralRe: Problem calling a function in RecordView's constructor Pin
__yash__27-Aug-07 4:40
professional__yash__27-Aug-07 4:40 
QuestionCDC::DrawDragRect Pin
bob1697227-Aug-07 3:25
bob1697227-Aug-07 3:25 
QuestionRe: CDC::DrawDragRect Pin
Mark Salsbery27-Aug-07 7:36
Mark Salsbery27-Aug-07 7:36 
AnswerRe: CDC::DrawDragRect Pin
bob1697227-Aug-07 10:45
bob1697227-Aug-07 10:45 
GeneralRe: CDC::DrawDragRect Pin
Mark Salsbery27-Aug-07 11:07
Mark Salsbery27-Aug-07 11:07 
QuestionHow to add GDI+ to a Project? Pin
TheShihan27-Aug-07 2:25
TheShihan27-Aug-07 2:25 
AnswerRe: How to add GDI+ to a Project? Pin
bob1697227-Aug-07 3:37
bob1697227-Aug-07 3:37 
GeneralRe: How to add GDI+ to a Project? Pin
TheShihan27-Aug-07 4:09
TheShihan27-Aug-07 4:09 
Questionadding menu item to right click context menu Pin
Dhiraj kumar Saini27-Aug-07 2:01
Dhiraj kumar Saini27-Aug-07 2:01 
AnswerRe: adding menu item to right click context menu Pin
Naveen27-Aug-07 2:32
Naveen27-Aug-07 2:32 
QuestionDetecting response/acknowledgement timeout in Winsock Pin
__yash__27-Aug-07 1:09
professional__yash__27-Aug-07 1:09 
Answeruse CTime or clock_t Pin
chandu00427-Aug-07 1:41
chandu00427-Aug-07 1:41 
GeneralRe: use CTime or clock_t Pin
__yash__27-Aug-07 1:51
professional__yash__27-Aug-07 1:51 
AnswerRe: Detecting response/acknowledgement timeout in Winsock Pin
Cedric Moonen27-Aug-07 2:09
Cedric Moonen27-Aug-07 2:09 

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.