I have some programs written in VB6. The problem is that I amnot able to istantiate different releases of Solidworks. So if aprogram works with SW2007 then fails with SW2008 (unable to createactiveX object). I am logged on my computer as user. I made sometest as follows:
Log in as administrator. Run Solidworks2008. log out an relog asuser. All my programs work with SW2008 and fail with SW2007.
Log in as administrator. Run Solidworks2007. Log out and relog asuser. All my programs work with Sw2007 and fail with SW2008.
Actually all the programs have reference to Solidworks2007 libraryand istantiate Solidworks via GetObject and CreateObject functions.The only way to work with different versions of solidworks is tohave different executables each referencing a different version ofsolidworks libraries. Not a very elegant solution. Is there any wayto have an executable working with any version of Solidworks?
Thankyou in advance for your help.
PaoloSolidworksApi macros







Log in as administrator. Run Solidworks2008. log out an relog asuser. All my programs work with SW2008 and fail with SW2007.
Log in as administrator. Run Solidworks2007. Log out and relog asuser. All my programs work with Sw2007 and fail with SW2008.
Actually all the programs have reference to Solidworks2007 libraryand istantiate Solidworks via GetObject and CreateObject functions.The only way to work with different versions of solidworks is tohave different executables each referencing a different version ofsolidworks libraries. Not a very elegant solution. Is there any wayto have an executable working with any version of Solidworks?
Thankyou in advance for your help.
PaoloSolidworksApi macros