Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing an exe in VC++ Pin
SimoneShah28-Oct-03 9:12
SimoneShah28-Oct-03 9:12 
GeneralRe: Using an exe in VC++ Pin
Joaquín M López Muñoz28-Oct-03 9:51
Joaquín M López Muñoz28-Oct-03 9:51 
GeneralWindow snapshot Pin
alex.barylski28-Oct-03 7:12
alex.barylski28-Oct-03 7:12 
GeneralRe: Window snapshot Pin
David Crow28-Oct-03 8:15
David Crow28-Oct-03 8:15 
GeneralRe: Window snapshot Pin
alex.barylski28-Oct-03 8:39
alex.barylski28-Oct-03 8:39 
GeneralSDI title bar Pin
Daniel132428-Oct-03 7:08
Daniel132428-Oct-03 7:08 
GeneralRe: SDI title bar Pin
Michael P Butler28-Oct-03 7:35
Michael P Butler28-Oct-03 7:35 
GeneralSerialization or Persistant Class Pin
mfcuser28-Oct-03 6:53
mfcuser28-Oct-03 6:53 
I want the following questions to be answered

1. From my SDI, it seems like the wizard had done a lot of things for me, including creating the serialize function. From the example, the class is derived from CObject. I believe any class derived from CObject (or CObject is the parent class of any other class)can be serialized. From my code, the wizard derived the class from CDocument. Since CDocument is derived from CObject, I believe there is no problem. Am I correct?

From my program also, instead of using DECLARE_SERIAL(CLassName) macro, the wizard uses DECLARE_DYNCREATE instead. I believe DECLARE_DYNCREATE can do the same as DECLARE_SERIAL. I would be happy is someone can point me the difference.

2. I do have a lot of dialogs in my document. As you know, each dialog has its own class. Each class has its own member function for that dialog. For instance, I have a class COption, in that class, I have member function like
m_iNumber, m_strName, m_strData etc. I want to know if I can get access to these member variabel from my document class for the serialization, which I don't think so? Do I have to create another class or create some global variables or member variable in my application class to store the values in order to access them from the document class for the serialization by using AfxGetApp()->member_variable?

3. Since AfxGetApp() only get access to the application class, if I put the member variables in the document class, is there any function like AfxGettApp() that I can use to get access to these variables in the dialog classes?

GeneralRe: Serialization or Persistant Class Pin
Joaquín M López Muñoz28-Oct-03 9:59
Joaquín M López Muñoz28-Oct-03 9:59 
GeneralCommunication between child windows Pin
Behzad Ebrahimi28-Oct-03 6:36
Behzad Ebrahimi28-Oct-03 6:36 
GeneralRe: Communication between child windows Pin
alex.barylski28-Oct-03 7:45
alex.barylski28-Oct-03 7:45 
GeneralCatching clicking Pin
YaronNir28-Oct-03 5:50
YaronNir28-Oct-03 5:50 
GeneralRe: Catching clicking Pin
alex.barylski28-Oct-03 7:26
alex.barylski28-Oct-03 7:26 
GeneralRe: Catching clicking Pin
David Crow28-Oct-03 10:45
David Crow28-Oct-03 10:45 
GeneralRe: Catching clicking Pin
alex.barylski28-Oct-03 11:58
alex.barylski28-Oct-03 11:58 
GeneralRe: Catching clicking Pin
yndfcd28-Oct-03 13:35
yndfcd28-Oct-03 13:35 
GeneralRe: Catching clicking Pin
Peter Molnar29-Oct-03 14:27
Peter Molnar29-Oct-03 14:27 
Generalusing Indic scripts in MFC in Win2K Pin
sagmam28-Oct-03 5:00
sagmam28-Oct-03 5:00 
QuestionHow to open a file in a different directory Pin
Deepak Samuel28-Oct-03 4:37
Deepak Samuel28-Oct-03 4:37 
AnswerRe: How to open a file in a different directory Pin
sagmam28-Oct-03 5:02
sagmam28-Oct-03 5:02 
AnswerRe: How to open a file in a different directory Pin
valikac28-Oct-03 5:47
valikac28-Oct-03 5:47 
GeneralResolution Problems Pin
Bernhard28-Oct-03 3:32
Bernhard28-Oct-03 3:32 
GeneralFile open dialog misery Pin
Rick Dangerous28-Oct-03 3:28
Rick Dangerous28-Oct-03 3:28 
GeneralCRichEditCtrl a WYSIWYG Control -- Don't Think So! Pin
Larry J. Siddens28-Oct-03 3:24
Larry J. Siddens28-Oct-03 3:24 
Generalunicode macro Pin
Anonymous28-Oct-03 3:16
Anonymous28-Oct-03 3:16 

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.