ObjectARX

ObjectARX

Reply
Distinguished Contributor
421232206
Posts: 164
Registered: ‎10-21-2010
Message 1 of 3 (242 Views)
Accepted Solution

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

242 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.

 

Technology change world! Coding change technology! We coders are coding!

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).

Distinguished Mentor
owenwengerd
Posts: 635
Registered: ‎08-06-2002
Message 2 of 3 (240 Views)

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
Distinguished Contributor
421232206
Posts: 164
Registered: ‎10-21-2010
Message 3 of 3 (227 Views)

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.

Technology change world! Coding change technology! We coders are coding!
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.