3 Replies Latest reply on Jul 19, 2015 11:44 PM by Jerimiah Welch

    How to run Solidworks API code written on different Machine

    Abhishek Lad

      I had written code which run on my machine(64bit Win7) successfully, but when i run it on

      other machine(32bit winXP) its shows following error.

      the showing for line

      SwApp=Getobject(,"Sldwork.Application")

       

       

      System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'SolidWorks.Interop.sldworks.SldWorks'.

      This operation failed because the QueryInterface call on the COM component for the interface with IID '{83A33D22-27C5-11CE-BFD4-00400513BB57}' failed due to the following error:

      No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).



      my machine is 64bit and other is 32bit is that problem


      but i had try same code on 32bit windows7 is works Successfully. i want to run it on winXP-

      32bit.