There's something error, and crash ,please help me!
1)I want to make a datamodel ("TestModel") and checked "stdafx.h" and "serialize" button ,but not check "MFC Serialize" button!I want to use CbArchive to serialize data!Then set "Document class" with "CTestDocument",then everything seems ok!
then I see "CTestDocument" is inherited form "CbObject" not from "CTestDocumentObject"
and there's no serialize function! I edit the class "CTestDocument"'s attribute box to make it checked the "serialize" button! and then the same as class "CTestDocumentObject",The class "CTestDocumentObject" inherit from itself! And when I want to add some relations to the class,it crash!
2)I want to change the text "AFX_EXT_CLASS" to something I like (for example : XTHERMFUNC_API or somethine else), Can you add to the setting box????? Thanks very much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What version are you using. John and Jimmy made some changes in this area and these changes have been implemented in the latest Beta. Give the Version 2.8 PR518 Beta a try. Remeber that this is a Beta.
Gunner
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,Gunner, Thanks very much for your soon reply!
The Version 2.8 PR518 has fixed the first problem!
Then can you help me to add the solution to the question 2 ?
usually , i don't use the key word "AFX_EXT_CLASS" or "AFX_EXT_EXPORT" ,but somewords I like! So Can you give a switch I can change this setting! I can change the source,but I think there's someone has the same question as me! Thanks for your great work!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) Methods just type what you want into "Calling Convention" drop down. This is good if you only want methods with different modifiers. If it is a class you want modified use the next method.
2) On project place holder, right click on the mouse to bring up a menu. Select "Edit Context" and the "Context Declaration" dialog box will pop-up. Create the context or contexts that you need, then right click on any item except for the project and Meta-Groups and "Assign Context".
Gunner
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The only thing is that when generate the codes I don't want to change the words "AFX_EXT_CLASS" (compiled as a dll), and I want use my export decl word!!!
Hi ,Gunner ,There's another question I have.
for example , I have a class CTriangle, and class CNode , CNode is the coord of a point,and CTriangle contains three CNodes, every CNode can get the list of owner(CTriangle) ,and every CTriangle can get it's nodes (pNode1,pNode2,pNode3).
as same words : every triangle has three node, and every node can owned by more than one triangle. How can I set the relation ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There's something error, and crash ,please help me!
1)I want to make a datamodel ("TestModel") and checked "stdafx.h" and "serialize" button ,but not check "MFC Serialize" button!I want to use CbArchive to serialize data!Then set "Document class" with "CTestDocument",then everything seems ok!
then I see "CTestDocument" is inherited form "CbObject" not from "CTestDocumentObject"
and there's no serialize function! I edit the class "CTestDocument"'s attribute box to make it checked the "serialize" button! and then the same as class "CTestDocumentObject",The class "CTestDocumentObject" inherit from itself! And when I want to add some relations to the class,it crash!
2)I want to change the text "AFX_EXT_CLASS" to something I like (for example : XTHERMFUNC_API or somethine else), Can you add to the setting box????? Thanks very much!
What version are you using. John and Jimmy made some changes in this area and these changes have been implemented in the latest Beta. Give the Version 2.8 PR518 Beta a try. Remeber that this is a Beta.
Gunner
Hi,Gunner, Thanks very much for your soon reply!
The Version 2.8 PR518 has fixed the first problem!
Then can you help me to add the solution to the question 2 ?
usually , i don't use the key word "AFX_EXT_CLASS" or "AFX_EXT_EXPORT" ,but somewords I like! So Can you give a switch I can change this setting! I can change the source,but I think there's someone has the same question as me! Thanks for your great work!
There are two workarounds that I use.
1) Methods just type what you want into "Calling Convention" drop down. This is good if you only want methods with different modifiers. If it is a class you want modified use the next method.
2) On project place holder, right click on the mouse to bring up a menu. Select "Edit Context" and the "Context Declaration" dialog box will pop-up. Create the context or contexts that you need, then right click on any item except for the project and Meta-Groups and "Assign Context".
Gunner
The only thing is that when generate the codes I don't want to change the words "AFX_EXT_CLASS" (compiled as a dll), and I want use my export decl word!!!
Hi ,Gunner ,There's another question I have.
for example , I have a class CTriangle, and class CNode , CNode is the coord of a point,and CTriangle contains three CNodes, every CNode can get the list of owner(CTriangle) ,and every CTriangle can get it's nodes (pNode1,pNode2,pNode3).
as same words : every triangle has three node, and every node can owned by more than one triangle. How can I set the relation ?