Menu

Something Error and Crash! Help!!!!!!!!!

cdn_c
2007-02-02
2013-04-17
  • cdn_c

    cdn_c - 2007-02-02

    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!

     
    • Craig Gunhouse

      Craig Gunhouse - 2007-02-03

      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

       
    • cdn_c

      cdn_c - 2007-02-03

      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!

       
      • Craig Gunhouse

        Craig Gunhouse - 2007-02-03

        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

         
    • cdn_c

      cdn_c - 2007-02-03

      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 ?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.