Click here to Skip to main content
15,887,027 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
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 
I state up front that I am not experienced with GUIs. My tasks include VS MFS dialogs to control how the app runs and show its performance, but the app is a number cruncher and has no significant user interface. Once started there is no user interaction. The problem is probably a beginner's error so do not hesitate to ask or point out the basics.

This test app is an MFC dialog and has only one dialog. I don't know your intent in differentiating between "dialog or main window." It is only a few steps beyond a just created MFC dialog project.

So far in the test project there is one edit box, one check box, and one button. A right click on the edit box produced a drop down and "Add variable" was selected. The name used was m_box_get_port_number. I added the check for status per your code and it is returned with value 0, false. The error code remains 1421.

The one button has the event handler shown in the OP and runs that code.

Is all that of any use?
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com


GeneralRe: control ID not found Pin
Richard MacCutchan6-Oct-14 21:33
mveRichard MacCutchan6-Oct-14 21:33 
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 
GeneralRe: Struct with Vector<BYTE> size different in VS2013 Pin
Richard MacCutchan1-Oct-14 23:29
mveRichard MacCutchan1-Oct-14 23:29 
GeneralRe: Struct with Vector<BYTE> size different in VS2013 Pin
Jacobkingsly1-Oct-14 23:31
Jacobkingsly1-Oct-14 23:31 
GeneralRe: Struct with Vector<BYTE> size different in VS2013 Pin
Richard MacCutchan1-Oct-14 23:35
mveRichard MacCutchan1-Oct-14 23:35 
AnswerRe: Struct with Vector<BYTE> size different in VS2013 Pin
Vi21-Oct-14 21:56
Vi21-Oct-14 21:56 
GeneralRe: Struct with Vector<BYTE> size different in VS2013 Pin
Jacobkingsly1-Oct-14 23:11
Jacobkingsly1-Oct-14 23:11 
AnswerRe: Struct with Vector<BYTE> size different in VS2013 Pin
Shao Voon Wong1-Oct-14 21:56
mvaShao Voon Wong1-Oct-14 21:56 
GeneralRe: Struct with Vector<BYTE> size different in VS2013 Pin
Jacobkingsly1-Oct-14 23:11
Jacobkingsly1-Oct-14 23:11 
AnswerRe: Struct with Vector<BYTE> size different in VS2013 Pin
Jacobkingsly3-Oct-14 3:27
Jacobkingsly3-Oct-14 3:27 
QuestionPointer to a function parameter Pin
econy24-Sep-14 3:01
econy24-Sep-14 3:01 

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.