Project setup

Project setup

Anonymous
Not applicable
818 Views
4 Replies
Message 1 of 5

Project setup

Anonymous
Not applicable

Hi

Is there a simple tutorial for how to set up an ObjectARX 64-bit project in Visual Studio 2010? I am new to ObjectARX and I do not know what settings I need. I think I might need MFC since some of the classes in the example below seems to be MFC. 

 

I would like it to work with this example: 

http://adndevblog.typepad.com/autocad/2012/05/how-to-obtain-acdb3dsolid-opm-properties-in-autocad-us...

0 Likes
819 Views
4 Replies
Replies (4)
Message 2 of 5

owenwengerd
Advisor
Advisor

If you haven't yet, install the ObjectARX Wizards in VS 2010, then let the wizard do the work for you to create a new ObjectARX project.

--
Owen Wengerd
ManuSoft
0 Likes
Message 3 of 5

Anonymous
Not applicable

I just went through all this and had a lot of issues. So here are the steps for a 64bit machine.

  1. Download and install all Visual Studio packages you want to install.
  2. Install Service Pack 1
  3. Install this Windows SDK 7
  4. Install ObjectArx documentation package (Turn off User Controll Settings)
  5. Install wizard (Turn off User Controll Settings)
  6. When your setting up instead of including the inc-32 you should use inc-64, same with lib-64
  7. I had an issues with kernel32.dll not being found when I tried to compile so I had to include the path to that as well.

If your using the wizard to setup the project for you realize the following.

  1. You may still need to include the kernel32.dll file in one of the paths.
  2. I had to remove the resources file since there was an issue there that I couldn't determine and it was restricting me from building.

I know that I had a lot of stumbling points when setting up 64bit so hopefully this helps.

0 Likes
Message 4 of 5

Anonymous
Not applicable

What do you mean by Turn off User Controll Settings? 

 

If you are not using the wizard which project template in Visual Studio are you using?

0 Likes
Message 5 of 5

Anonymous
Not applicable

I use the arx wizard that is supplied. I have just had to deal with a few issues along the way. I know you can setup a project manually though. The arx wizard has a lot of sample code in it though which is nice. It felt like it took a bit to get it working originally but now that I know how to get everything setup I feel a bit more comfortable with it.

 

I suggest starting off with a simple program (HelloWorld). When you start attempting to compile it just read through the error codes and see if you can resolve the issues.

 

The biggest issue I had was with the the 64 bit compiler not being available after the installation of the service pack 1. When you install Windows SDK 7 that all gets resolved (hopefully).

0 Likes