Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

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