Click here to Skip to main content
14,241,575 members

ATL / WTL / STL

 
GeneralRe: Time of reading text file Pin
Richard MacCutchan11-Nov-14 7:25
protectorRichard MacCutchan11-Nov-14 7:25 
AnswerRe: Time of reading text file Pin
Aescleal12-Nov-14 6:01
memberAescleal12-Nov-14 6:01 
QuestionOptimized Solution for prime numbers.. Pin
Raunak Singh Chauhan6-Nov-14 6:20
memberRaunak Singh Chauhan6-Nov-14 6:20 
AnswerRe: Optimized Solution for prime numbers.. Pin
Nicolas Dorier6-Nov-14 6:45
professionalNicolas Dorier6-Nov-14 6:45 
GeneralRe: Optimized Solution for prime numbers.. Pin
Raunak Singh Chauhan6-Nov-14 6:49
memberRaunak Singh Chauhan6-Nov-14 6:49 
GeneralRe: Optimized Solution for prime numbers.. Pin
Nicolas Dorier6-Nov-14 6:56
professionalNicolas Dorier6-Nov-14 6:56 
AnswerRe: Optimized Solution for prime numbers.. Pin
Bernhard Hiller6-Nov-14 22:06
memberBernhard Hiller6-Nov-14 22:06 
Questionget IP address from Net Address Control (Resolved) Pin
bkelly1310-Oct-14 16:06
memberbkelly1310-Oct-14 16:06 
Windows 7, VS 2008, MFC, Dialog, c++

I would like to use a control of type Net Address control to provide a method for the user to enter an IP address. Here is the closest I can get:
void CTCP_Client_ConsumerDlg::OnBnClickedButton1()
{
            
    NC_ADDRESS   y;
    PNC_ADDRESS a = &y;
    a->pAddrInfo = 0;
    a->PortNumber = 0;
    a->PrefixLength = 0;

    HRESULT x;
    DWORD ip_address = 0;


    x = c_net_work_address_edit_box.GetAddress( a );
    ip_address = c_net_work_address_edit_box.GetAddress( a );

}


Item: c_net_work_address_edit_box was created by right clicking on the address control and creating a control variable. When I type in: 192.168.2.3 the expected value is not present.

Also: The edit box does not provide the dots between the four parts of the IP address. I have seen that used many places, but want to implement in my code now.

Edit: Answer: Look in section Dialog Editor of the dialog toolbox to find IP Address Control. I don't know what the Network Address Control is for but I lack sufficient knowledge to get it working for my needs.
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com



modified 19-Oct-14 18:21pm.

AnswerRe: get IP address from Net Address Control Pin
Richard MacCutchan10-Oct-14 21:18
protectorRichard MacCutchan10-Oct-14 21:18 
GeneralRe: get IP address from Net Address Control Pin
bkelly1311-Oct-14 9:11
memberbkelly1311-Oct-14 9:11 
GeneralRe: get IP address from Net Address Control Pin
Richard MacCutchan13-Oct-14 5:10
protectorRichard MacCutchan13-Oct-14 5:10 
GeneralRe: get IP address from Net Address Control Pin
bkelly1318-Oct-14 10:44
memberbkelly1318-Oct-14 10:44 
GeneralRe: get IP address from Net Address Control Pin
Richard MacCutchan18-Oct-14 21:13
protectorRichard MacCutchan18-Oct-14 21:13 
GeneralRe: get IP address from Net Address Control Pin
bkelly1319-Oct-14 8:42
memberbkelly1319-Oct-14 8:42 
Generalserial port access and communication using c Pin
Member 111402618-Oct-14 22:51
memberMember 111402618-Oct-14 22:51 
GeneralRe: serial port access and communication using c Pin
pasztorpisti8-Oct-14 23:18
professionalpasztorpisti8-Oct-14 23:18 
GeneralRe: serial port access and communication using c Pin
Orjan Westin9-Oct-14 0:58
professionalOrjan Westin9-Oct-14 0:58 
GeneralRe: serial port access and communication using c Pin
pasztorpisti9-Oct-14 1:08
professionalpasztorpisti9-Oct-14 1:08 
GeneralRe: serial port access and communication using c Pin
Orjan Westin9-Oct-14 4:50
professionalOrjan Westin9-Oct-14 4:50 
GeneralRe: serial port access and communication using c Pin
Orjan Westin9-Oct-14 0:55
professionalOrjan Westin9-Oct-14 0:55 
QuestionEnable a control/window in an MFC dialog, Resolved Pin
bkelly138-Oct-14 14:02
memberbkelly138-Oct-14 14:02 
AnswerRe: Enable a control/window in an MFC dialog, Resolved Pin
Richard MacCutchan8-Oct-14 21:41
protectorRichard MacCutchan8-Oct-14 21:41 
GeneralRe: Enable a control/window in an MFC dialog, Resolved Pin
bkelly139-Oct-14 0:34
memberbkelly139-Oct-14 0:34 
Questioncontrol ID not found, Resolved Pin
bkelly135-Oct-14 14:25
memberbkelly135-Oct-14 14:25 
AnswerRe: control ID not found Pin
Richard MacCutchan5-Oct-14 23:46
protectorRichard MacCutchan5-Oct-14 23:46 

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.