Get info if 32bit or 64bit is running

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/11/2008 at 01:02, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R9.6+ 
Platform:   Windows  ; Mac  ;  
Language(s) :     C++  ;

---------
Hi,

how can one determine whether the 32bit or 64bit version of C4D is currently running?

Thanks in advance,

Andre

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/11/2008 at 12:34, xxxxxxxx wrote:

Sorry but I don´t quite see what you mean. If the user is running the 64-Bit version of c4d when your plugin is running, this will only work if your plugin is 64-bit too. I don´t see the sense in your question. What are you trying to achieve or what do you have in mind?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/11/2008 at 16:01, xxxxxxxx wrote:

Hiho...

3D Designer, when he develops a plugin for windows, you're right because he has to develop two different version (cdl and cdl64)

But whats on Mac, there is only one file for both versions.
Mailard: Sorry, I don't know too but that would a very useful function I searched too.

bye..

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/11/2008 at 17:26, xxxxxxxx wrote:

Although this is true for the MacOS dylib for R11, it still doesn't load all of the included versions - just the appropriate one. What the linker does in Xcode is to create a multi-lib file (there are ppc/intel/ppc64/intel-64 libs). Only the lib relevant to the processor and app mode (32/64) is loaded and registered by Cinema 4D.

But as you say, it would be nice to be able to get both the OS (which can be done: GeGetCurrentOS()), the cpu type (which can be done: GeGetByteOrder()), and the bit size (32/64) (which cannot be done directly). GetSystemEnvironmentalVariable() may be useful indirectly (?).

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 27/11/2008 at 02:36, xxxxxxxx wrote:

exactly, something like that would be the thing I'd search for too. I did not achieve anything with GetSystemEnvironmentalVariable() thus far either though.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 27/11/2008 at 07:06, xxxxxxxx wrote:

Check for the __C4D_64BIT define.

Something like this:

> \> #ifdef \__C4D_64BIT \>      GePrint("64 bit"); \> #else \>      GePrint("32 bit"); \> #endif \>

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 04/12/2008 at 10:37, xxxxxxxx wrote:

Thank you a lot!