15,904,822 members
Home / Discussions / ATL / WTL / STL

ATL / WTL / STL

 Optimized Solution for prime numbers.. Raunak Singh Chauhan6-Nov-14 6:20 Raunak Singh Chauhan 6-Nov-14 6:20
 Re: Optimized Solution for prime numbers.. Nicolas Dorier6-Nov-14 6:45 Nicolas Dorier 6-Nov-14 6:45
 Re: Optimized Solution for prime numbers.. Raunak Singh Chauhan6-Nov-14 6:49 Raunak Singh Chauhan 6-Nov-14 6:49
 Re: Optimized Solution for prime numbers.. Nicolas Dorier6-Nov-14 6:56 Nicolas Dorier 6-Nov-14 6:56
 Re: Optimized Solution for prime numbers.. Bernhard Hiller6-Nov-14 22:06 Bernhard Hiller 6-Nov-14 22:06
 get IP address from Net Address Control (Resolved) bkelly1310-Oct-14 16:06 bkelly13 10-Oct-14 16:06
 Re: get IP address from Net Address Control Richard MacCutchan10-Oct-14 21:18 Richard MacCutchan 10-Oct-14 21:18
 Re: get IP address from Net Address Control bkelly1311-Oct-14 9:11 bkelly13 11-Oct-14 9:11
 I am not doing well with this. There must be something that I have completely missed and just cannot see. Here is my latest effort. ```void CTCP_Client_ConsumerDlg::OnBnClickedButton1() { NC_ADDRESS nc_address; PNC_ADDRESS p_nc_address = &nc_address; p_nc_address->pAddrInfo = 0; p_nc_address->PortNumber = 0; p_nc_address->PrefixLength = 0; HRESULT hr; DWORD ip_address = 0; DWORD &rip_address = ip_address; hr = c_net_work_address_edit_box.GetAddress( p_nc_address ); ip_address = c_net_work_address_edit_box.GetAddress( p_nc_address ); int count = c_net_work_address_edit_box.GetAddress( rip_address ); }``` I dropped a Network Address Control on the MFC dialog, then right clicked and added variable c_net_work_address_edit_box. The page you suggested has: VB ```int GetAddress( BYTE& nField0, BYTE& nField1, BYTE& nField2, BYTE& nField3 ); int GetAddress( DWORD& dwAddress );``` Which I see is the same as my last attempt. But the compiler complains: Quote:error C2664: 'CNetAddressCtrl::GetAddress' : cannot convert parameter 1 from 'DWORD' to 'PNC_ADDRESS' Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com
 Re: get IP address from Net Address Control Richard MacCutchan13-Oct-14 5:10 Richard MacCutchan 13-Oct-14 5:10
 Re: get IP address from Net Address Control bkelly1318-Oct-14 10:44 bkelly13 18-Oct-14 10:44
 Re: get IP address from Net Address Control Richard MacCutchan18-Oct-14 21:13 Richard MacCutchan 18-Oct-14 21:13
 Re: get IP address from Net Address Control bkelly1319-Oct-14 8:42 bkelly13 19-Oct-14 8:42
 serial port access and communication using c Member 111402618-Oct-14 22:51 Member 11140261 8-Oct-14 22:51
 Re: serial port access and communication using c pasztorpisti8-Oct-14 23:18 pasztorpisti 8-Oct-14 23:18
 Re: serial port access and communication using c Orjan Westin9-Oct-14 0:58 Orjan Westin 9-Oct-14 0:58
 Re: serial port access and communication using c pasztorpisti9-Oct-14 1:08 pasztorpisti 9-Oct-14 1:08
 Re: serial port access and communication using c Orjan Westin9-Oct-14 4:50 Orjan Westin 9-Oct-14 4:50
 Re: serial port access and communication using c Orjan Westin9-Oct-14 0:55 Orjan Westin 9-Oct-14 0:55
 Enable a control/window in an MFC dialog, Resolved bkelly138-Oct-14 14:02 bkelly13 8-Oct-14 14:02
 Re: Enable a control/window in an MFC dialog, Resolved Richard MacCutchan8-Oct-14 21:41 Richard MacCutchan 8-Oct-14 21:41
 Re: Enable a control/window in an MFC dialog, Resolved bkelly139-Oct-14 0:34 bkelly13 9-Oct-14 0:34