• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk ObjectARX

    Reply
    Distinguished Contributor
    421232206
    Posts: 140
    Registered: ‎10-21-2010
    Accepted Solution

    can not compile ARX's example "BlockView" with OjbectARX2010

    173 Views, 2 Replies
    12-11-2012 02:18 AM

    there is an example called "BlockView" in OjbectARX2008's SDK. it is in the directory "ObjectARX 2008\samples\graphics\BlockView",

     it can be compiled and worked well.

    but in ARX2010,i can't find this example, and when I tried to compile it with ARX2010 in VS2008, there were errors :

     

    error C2259: 'OrbitGadget' : cannot instantiate abstract class

    error C3248: 'AcGiDrawable::worldDraw': function declared as 'sealed' cannot be overridden by 'OrbitGadget::worldDraw'

     

    can anyone help me solve this problem?

    it seems that OjbectARX2010 dose not want users to inherit from class AcGiDrawable, but ARX2008 supports this.

     

    Please use plain text.
    Mentor
    Posts: 239
    Registered: ‎08-06-2002

    Re: can not compile ARX's example "BlockView" with OjbectARX2010

    12-11-2012 02:39 AM in reply to: 421232206

    You'll need to update the code for ObjectARX 2010, but it should work fine once it is updated. It may help to review changes listed in the ObjectARX 2010 migration guide (docs\arxmg.chm).

    --
    Owen Wengerd
    ManuSoft
    Please use plain text.
    Distinguished Contributor
    421232206
    Posts: 140
    Registered: ‎10-21-2010

    Re: can not compile ARX's example "BlockView" with OjbectARX2010

    12-11-2012 07:41 AM in reply to: owenwengerd

    thanks a lot, i have solved the problem with your advice. the chm helps.

    thank you again.

    the way is to replace the methods with sub<Old method name> methods provided.

    Please use plain text.