TheSwamp

Code Red => ARX Programming => Topic started by: MickD on April 29, 2009, 06:54:00 AM

Title: Tips for compiling x64 ARX?
Post by: MickD 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 :)
Title: Re: Tips for compiling x64 ARX?
Post by: MickD 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
Title: Re: Tips for compiling x64 ARX?
Post by: Chuck Gabriel 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.