Click here to Skip to main content
14,303,069 members

C / C++ / MFC

 
GeneralRe: Linkage Problem Pin
Member 1125835327-Mar-15 1:50
memberMember 1125835327-Mar-15 1:50 
GeneralRe: Linkage Problem Pin
Jochen Arndt27-Mar-15 2:14
mveJochen Arndt27-Mar-15 2:14 
GeneralRe: Linkage Problem Pin
Member 1125835327-Mar-15 2:21
memberMember 1125835327-Mar-15 2:21 
GeneralRe: Linkage Problem Pin
Jochen Arndt27-Mar-15 2:46
mveJochen Arndt27-Mar-15 2:46 
GeneralRe: Linkage Problem Pin
Member 1125835327-Mar-15 3:07
memberMember 1125835327-Mar-15 3:07 
QuestionNeed to open an instance of excel in the same process as my main program. Pin
Raj Abhishek26-Mar-15 4:15
memberRaj Abhishek26-Mar-15 4:15 
AnswerRe: Need to open an instance of excel in the same process as my main program. Pin
Melqui Andrade31-Mar-15 2:10
memberMelqui Andrade31-Mar-15 2:10 
QuestionControls, variable and dialogs Pin
lor7526-Mar-15 1:10
memberlor7526-Mar-15 1:10 
Hello,

i'm quite new to MFC programming and I would like if my software architecture can be simplified.

Let's suppose to have an MFC program where I put a member variable in CView class. This variable is set by a control put in a dialog window called by a menù.
I usually set a control variable in order to get the control value in order to avoid the GetdlgItem command.
The value of the control is used to set a member variable inside tha class of the dialog window and then when i close the dialog I copy the value of the dialog's variable into the main window variable


control variable -> member variable of the dialog window -> member variable of the main Cview window

With this scheme I Have to use 3 variables for each controls and this is quite expensive.
Can anyone suggest me a simpler way to get to synchronize the variable used by the main window with the value of a control inside a dialog window?

Best regards.
AnswerRe: Controls, variable and dialogs Pin
David Crow26-Mar-15 3:26
memberDavid Crow26-Mar-15 3:26 
GeneralRe: Controls, variable and dialogs Pin
lor7526-Mar-15 4:19
memberlor7526-Mar-15 4:19 
AnswerRe: Controls, variable and dialogs Pin
Freak3030-Mar-15 1:22
memberFreak3030-Mar-15 1:22 
Questionwin32 - how avoid flickers? Pin
Member 1154582425-Mar-15 11:50
memberMember 1154582425-Mar-15 11:50 
QuestionVisual Studio C++ compiler empty functions Pin
severin025-Mar-15 10:28
memberseverin025-Mar-15 10:28 
AnswerRe: Visual Studio C++ compiler empty functions Pin
Richard Andrew x6425-Mar-15 15:39
professionalRichard Andrew x6425-Mar-15 15:39 
AnswerRe: Visual Studio C++ compiler empty functions Pin
Daniel Pfeffer25-Mar-15 23:00
professionalDaniel Pfeffer25-Mar-15 23:00 
AnswerRe: Visual Studio C++ compiler empty functions Pin
Maximilien26-Mar-15 4:38
memberMaximilien26-Mar-15 4:38 
QuestionUnable to get WTS_SESSION_LOGON event notification. How to capture the event when user log on to the machine.? Pin
Member 874411124-Mar-15 0:09
memberMember 874411124-Mar-15 0:09 
QuestionIs there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
prime_tang23-Mar-15 23:37
memberprime_tang23-Mar-15 23:37 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Richard MacCutchan24-Mar-15 3:40
protectorRichard MacCutchan24-Mar-15 3:40 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Jochen Arndt24-Mar-15 4:14
mveJochen Arndt24-Mar-15 4:14 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Chris Losinger24-Mar-15 9:06
professionalChris Losinger24-Mar-15 9:06 
SuggestionRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
.Shoaib25-Mar-15 6:35
member.Shoaib25-Mar-15 6:35 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
jschell25-Mar-15 10:58
memberjschell25-Mar-15 10:58 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Stefan_Lang8-Apr-15 4:52
memberStefan_Lang8-Apr-15 4:52 
QuestionLink Error Which .lib to include Pin
ForNow21-Mar-15 19:28
memberForNow21-Mar-15 19:28 

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.