Click here to Skip to main content
       

C / C++ / MFC

 
Questioni want any code to make project Pinmemberemanalshboul3-Oct-12 13:54 
AnswerRe: i want any code to make project PinmemberPeter_in_27803-Oct-12 14:48 
AnswerRe: i want any code to make project PinmemberMohibur Rashid3-Oct-12 19:55 
QuestionRe: i want any code to make project PinmemberDavidCrow4-Oct-12 3:51 
AnswerRe: i want any code to make project PinmvpRichard MacCutchan4-Oct-12 5:30 
Questionstatic text boxes and using the wizard to initialize a variable PinmemberAndrewG12313-Oct-12 12:46 
AnswerRe: static text boxes and using the wizard to initialize a variable PinmemberMohibur Rashid3-Oct-12 19:51 
AnswerRe: static text boxes and using the wizard to initialize a variable Pinmember«_Superman_»3-Oct-12 20:04 
The Add Variable wizard does not support what you want to do.
However, you can add the variables manually to get at what you're trying to do.
 
For the first text box, right click and select Add Variable.
Then select the datatype as int and enter the name of the variable as m_chan.
 
After this, open the dialog header file and change the member variable from int m_chan; to int m_chan[8];.
 
Now open the dialog source file and make the following changes -
 
At the dialog constructor remove the line , m_chan(0).
 
In the DoDataExchange function, remove the line DDX_Text(pDX, IDC_EDIT1, m_chan); and add the following lines -
DDX_Text(pDX, IDC_EDIT1, m_chan[0]);
DDX_Text(pDX, IDC_EDIT2, m_chan[1]);
DDX_Text(pDX, IDC_EDIT3, m_chan[2]);
DDX_Text(pDX, IDC_EDIT4, m_chan[3]);
DDX_Text(pDX, IDC_EDIT5, m_chan[4]);
DDX_Text(pDX, IDC_EDIT6, m_chan[5]);
DDX_Text(pDX, IDC_EDIT7, m_chan[6]);
DDX_Text(pDX, IDC_EDIT8, m_chan[7]);
 
Here, replace the IDs of the edit boxes to the appropriate IDs.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C

AnswerRe: static text boxes and using the wizard to initialize a variable PinmemberMarius Bancila4-Oct-12 1:41 
Questionneed help with client server Pinmemberaajibade3-Oct-12 7:45 
AnswerRe: need help with client server PinmemberDavidCrow3-Oct-12 7:53 
QuestionHow to create C++/CLI Interface to access .net API from C++ code? Pinmemberlitu kumar3-Oct-12 3:14 
AnswerCrosspost PinmemberPeter_in_27803-Oct-12 3:24 
GeneralRe: Crosspost Pinmemberlitu kumar3-Oct-12 3:30 
GeneralRe: Crosspost PinmvpRichard MacCutchan3-Oct-12 3:32 
GeneralRe: Crosspost PinmemberPeter_in_27803-Oct-12 3:48 
GeneralRe: Crosspost PinmemberDavidCrow3-Oct-12 4:19 
GeneralRe: Crosspost PinmvpRichard MacCutchan3-Oct-12 5:35 
AnswerRe: How to create C++/CLI Interface to access .net API from C++ code? Pinmemberjschell3-Oct-12 11:26 
Questioncan you help me Pinmemberemanalshboul2-Oct-12 12:23 
AnswerRe: can you help me PinmemberRichard Andrew x642-Oct-12 12:42 
AnswerRe: can you help me PinmemberJoan Murt3-Oct-12 0:18 
QuestionRe: can you help me PinmemberDavidCrow3-Oct-12 3:28 
QuestionGet all substrings from an application PinmemberBrandon T. H.1-Oct-12 4:43 
AnswerRe: Get all substrings from an application Pinmemberpasztorpisti1-Oct-12 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 25 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid