Author Topic: Tips for compiling x64 ARX?  (Read 1698 times)

0 Members and 1 Guest are viewing this topic.

MickD

  • Gator
  • Posts: 3410
  • (x-in)->[process]->(y-out)
Tips for compiling x64 ARX?
« on: April 29, 2009, 06:54:00 AM »
Hi All,

Does anyone have any tips/experiences to share comiling ARX for x64 build of acad?

I don't have a machine for testing but I would like to know a few things to consider when writing code for both 32 and 64 bit builds.

Thanks,
Mick.

P.S. does anyone know what header AcAxGetObjectId64 resides?? The help doc's don't help much :(

perhaps it's time I put Python to good use to search the many headers for the definition :)
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

Lao Tzu: “To attain knowledge, add things
every day; to obtain wisdom, remove things every day.”

MickD

  • Gator
  • Posts: 3410
  • (x-in)->[process]->(y-out)
Re: Tips for compiling x64 ARX?
« Reply #1 on: April 29, 2009, 07:24:21 AM »
found the header for the function I was looking for, I'm sure I included it but it still failed to compile with def not found...oh well try again.

Here's the python code I used to find it

Code: [Select]
import re, os
path = "C:/ObjectARX 2008/inc/"
incfolder = os.listdir(path)
for header in incfolder:
    hfile = os.path.join(path, header)
    text = open(hfile, "r")
    for line in text:
        if re.match("(.*)(AcAxGetObjectId64)(.*)", line):
            print line + hfile
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

Lao Tzu: “To attain knowledge, add things
every day; to obtain wisdom, remove things every day.”

Chuck Gabriel

  • Guest
Re: Tips for compiling x64 ARX?
« Reply #2 on: April 29, 2009, 08:00:07 AM »
My guess (emphasis on guess) is that the definition of that function is probably enclosed in an #ifdef/#endif and you need to add the proper preprocessor definition (probably something like _X64) in your project settings.  I haven't downloaded the current SDK, so I can't confirm my guess.