ObjectARX

ObjectARX

Reply
Mentor
421232206
Posts: 166
Registered: ‎10-21-2010
Message 1 of 3 (245 Views)
Accepted Solution

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

245 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: 686
Registered: ‎08-06-2002
Message 2 of 3 (243 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
Mentor
421232206
Posts: 166
Registered: ‎10-21-2010
Message 3 of 3 (230 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!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.