Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Get info if 32bit or 64bit is running

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 578 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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..

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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 (?).

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  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!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post