Click here to Skip to main content
15,867,330 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: get IP address from Net Address Control Pin
bkelly1311-Oct-14 9:11
bkelly1311-Oct-14 9:11 
GeneralRe: get IP address from Net Address Control Pin
Richard MacCutchan13-Oct-14 5:10
mveRichard MacCutchan13-Oct-14 5:10 
GeneralRe: get IP address from Net Address Control Pin
bkelly1318-Oct-14 10:44
bkelly1318-Oct-14 10:44 
GeneralRe: get IP address from Net Address Control Pin
Richard MacCutchan18-Oct-14 21:13
mveRichard MacCutchan18-Oct-14 21:13 
GeneralRe: get IP address from Net Address Control Pin
bkelly1319-Oct-14 8:42
bkelly1319-Oct-14 8:42 
Generalserial port access and communication using c Pin
Member 111402618-Oct-14 22:51
Member 111402618-Oct-14 22:51 
GeneralRe: serial port access and communication using c Pin
pasztorpisti8-Oct-14 23:18
pasztorpisti8-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
pasztorpisti9-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
bkelly138-Oct-14 14:02 
AnswerRe: Enable a control/window in an MFC dialog, Resolved Pin
Richard MacCutchan8-Oct-14 21:41
mveRichard MacCutchan8-Oct-14 21:41 
GeneralRe: Enable a control/window in an MFC dialog, Resolved Pin
bkelly139-Oct-14 0:34
bkelly139-Oct-14 0:34 
Questioncontrol ID not found, Resolved Pin
bkelly135-Oct-14 14:25
bkelly135-Oct-14 14:25 
AnswerRe: control ID not found Pin
Richard MacCutchan5-Oct-14 23:46
mveRichard MacCutchan5-Oct-14 23:46 
GeneralRe: control ID not found Pin
bkelly136-Oct-14 14:52
bkelly136-Oct-14 14:52 
GeneralRe: control ID not found Pin
Richard MacCutchan6-Oct-14 21:33
mveRichard MacCutchan6-Oct-14 21:33 
If I understand what you are saying you have an MFC application that is a dialog; that's fairly standard. Within the dialog are a few controls, one of which is an edit box. You then say, "A right click on the edit box produced a drop down and "Add variable" was selected.". That part I don't understand, an edit box is just that, a box that you type text into which allows simple editing. What I would expect to happen would be that you would type something into the edit box, and then click the button. Your button handler would be something like:
C++
void Cvs_2008_get_port_numberDlg::OnBnClickedButton1()
{
    UINT port_number;
    BOOL status;
    int  last_error = 0;
 
    port_number = GetDlgItemInt( IDC_EDIT1, &status );
    if (status == FALSE)
        last_error = GetLastError(); 
// ...
// store the port number somewhere

When you prefix your call to GetDlgItemInt with m_box_get_port_number (the edit box variable name) you are trying to find the item IDC_EDIT1 within the edit control. But the edit control does not have a child window with that ID so the call fails.
GeneralResolved Pin
bkelly137-Oct-14 14:31
bkelly137-Oct-14 14:31 
GeneralRe: Resolved Pin
Richard MacCutchan7-Oct-14 22:24
mveRichard MacCutchan7-Oct-14 22:24 
QuestionStruct with Vector<BYTE> size different in VS2013 Pin
Jacobkingsly1-Oct-14 18:15
Jacobkingsly1-Oct-14 18:15 
QuestionRe: Struct with Vector<BYTE> size different in VS2013 Pin
Richard MacCutchan1-Oct-14 21:31
mveRichard MacCutchan1-Oct-14 21:31 
AnswerRe: Struct with Vector<BYTE> size different in VS2013 Pin
Jacobkingsly1-Oct-14 23:05
Jacobkingsly1-Oct-14 23:05 
GeneralRe: Struct with Vector<BYTE> size different in VS2013 Pin
Richard MacCutchan1-Oct-14 23:13
mveRichard MacCutchan1-Oct-14 23:13 
GeneralRe: Struct with Vector<BYTE> size different in VS2013 Pin
Jacobkingsly1-Oct-14 23:26
Jacobkingsly1-Oct-14 23:26 

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.