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 2 Watching
    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.
    • Al HartA Offline
      Al Hart
      last edited by

      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.comimageseefRender_plus_colored30x30%29.PNG
      IRender nXt from Render Plus

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        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
        • Al HartA Offline
          Al Hart
          last edited by

          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.comimageseefRender_plus_colored30x30%29.PNG
          IRender nXt from Render Plus

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            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
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement