Click here to Skip to main content
13,801,049 members

C / C++ / MFC

 
Questioni want any code to make project Pin
emanalshboul3-Oct-12 13:54
memberemanalshboul3-Oct-12 13:54 
AnswerRe: i want any code to make project Pin
Peter_in_27803-Oct-12 14:48
professionalPeter_in_27803-Oct-12 14:48 
AnswerRe: i want any code to make project Pin
Mohibur Rashid3-Oct-12 19:55
professionalMohibur Rashid3-Oct-12 19:55 
QuestionRe: i want any code to make project Pin
David Crow4-Oct-12 3:51
memberDavid Crow4-Oct-12 3:51 
AnswerRe: i want any code to make project Pin
Richard MacCutchan4-Oct-12 5:30
protectorRichard MacCutchan4-Oct-12 5:30 
Questionstatic text boxes and using the wizard to initialize a variable Pin
AndrewG12313-Oct-12 12:46
memberAndrewG12313-Oct-12 12:46 
AnswerRe: static text boxes and using the wizard to initialize a variable Pin
Mohibur Rashid3-Oct-12 19:51
professionalMohibur Rashid3-Oct-12 19:51 
AnswerRe: static text boxes and using the wizard to initialize a variable Pin
«_Superman_»3-Oct-12 20:04
professional«_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 Pin
Marius Bancila4-Oct-12 1:41
professionalMarius Bancila4-Oct-12 1:41 
Questionneed help with client server Pin
aajibade3-Oct-12 7:45
memberaajibade3-Oct-12 7:45 
AnswerRe: need help with client server Pin
David Crow3-Oct-12 7:53
memberDavid Crow3-Oct-12 7:53 
QuestionHow to create C++/CLI Interface to access .net API from C++ code? Pin
litu kumar3-Oct-12 3:14
memberlitu kumar3-Oct-12 3:14 
AnswerCrosspost Pin
Peter_in_27803-Oct-12 3:24
professionalPeter_in_27803-Oct-12 3:24 
GeneralRe: Crosspost Pin
litu kumar3-Oct-12 3:30
memberlitu kumar3-Oct-12 3:30 
GeneralRe: Crosspost Pin
Richard MacCutchan3-Oct-12 3:32
protectorRichard MacCutchan3-Oct-12 3:32 
GeneralRe: Crosspost Pin
Peter_in_27803-Oct-12 3:48
professionalPeter_in_27803-Oct-12 3:48 
GeneralRe: Crosspost Pin
David Crow3-Oct-12 4:19
memberDavid Crow3-Oct-12 4:19 
GeneralRe: Crosspost Pin
Richard MacCutchan3-Oct-12 5:35
protectorRichard MacCutchan3-Oct-12 5:35 
AnswerRe: How to create C++/CLI Interface to access .net API from C++ code? Pin
jschell3-Oct-12 11:26
memberjschell3-Oct-12 11:26 
Questioncan you help me Pin
emanalshboul2-Oct-12 12:23
memberemanalshboul2-Oct-12 12:23 
AnswerRe: can you help me Pin
Richard Andrew x642-Oct-12 12:42
professionalRichard Andrew x642-Oct-12 12:42 
AnswerRe: can you help me Pin
Joan M3-Oct-12 0:18
professionalJoan M3-Oct-12 0:18 
QuestionRe: can you help me Pin
David Crow3-Oct-12 3:28
memberDavid Crow3-Oct-12 3:28 
QuestionGet all substrings from an application Pin
Brandon-X120001-Oct-12 4:43
memberBrandon-X120001-Oct-12 4:43 
AnswerRe: Get all substrings from an application Pin
pasztorpisti1-Oct-12 5:18
professionalpasztorpisti1-Oct-12 5:18 

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.


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.181215.1 | Last Updated 16 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid