• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

SketchUpAPI.dll - 32 and 64 bit

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 2 Posters 1.4k 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.
  • A Offline
    Al Hart
    last edited by 2 Jul 2016, 16:55

    We have a 32 bit and a 64 bit version of our .exe which uses SketchUpAPI.dll.

    SketchUp provides both a 32 bit and a 64 bit version of SketchUpAPI.dll, but they have the same name.

    We would like to put both of our .EXEs (32 bit and 64 bit) in the same folder, but have them load different versions of SketchUpAPI.dll.

    We tried renaming the 64 but dll, but that didn't work

    Any ideas on how we could have both .exes (and all the support files) in the same folder?

    Al Hart

    http://wiki.renderplus.com/images/e/ef/Render_plus_colored30x30%29.PNG
    IRender nXt from Render Plus

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 3 Jul 2016, 16:26

      http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup#is_64bit ?

      @unknownuser said:

      if Sketchup.respond_to?(:is_64bit?) && Sketchup.is_64bit?

      Load 64bit binaries.

      else

      Load 32bit binaries.

      end

      TIG

      1 Reply Last reply Reply Quote 0
      • A Offline
        Al Hart
        last edited by 3 Jul 2016, 16:54

        We are creating two .exe's

        SketchUpReader32.exe and SketchUpReader64.exe, and placing them in the same folder.

        The .exe's automatically load SketchUpAPI.dll from the same folder, but we can't put both the 32 bit and the 64 bit versions of the DLL in the same folder, because they have the same name.

        Al Hart

        http://wiki.renderplus.com/images/e/ef/Render_plus_colored30x30%29.PNG
        IRender nXt from Render Plus

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 3 Jul 2016, 18:06

          Why not separate the 'bitness' at the download-installer level, i.e. offer 32/64 bit installers ?
          Then what the client downlands is what they expect ?

          If you want to remain 'clever'... then check the bitness when the exe runs [installer-level check] and have two separate installer exe's running from those...
          😕

          TIG

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement