Calling Sap2000 by C++ -


i want call sap2000 c++, , followed csi_oapi_documentation following:

create visual c++ win32 project using template “win32 console application”.

in win32 application wizard, add common header files atl under application settings tab.

create folder named “tlb” under project folder , copy “sap2000.tlb” installation folder “tlb” folder.

create folder named “c:\api” if not exist.

open "stdafx.h" file generated wizard double clicking on , add following line end of document:

  #include <atlsafe.h> 

open .cpp file generated wizard double clicking on , paste in following code:

  #include "stdafx.h"    #include <sstream>   #include <iomanip>   #include <math.h>    #import "..\tlb\sap2000.tlb" high_property_prefixes("get_","put_","putref_") no_smart_pointers 

no_namespace raw_native_types rename("min", "sap2000v12_min") rename("setprop", "sap2000v12_setprop") rename("getprop", "sap2000v12_getprop") rename("yield", "sap2000v12_yield")

however,it doesn't work. there wrong #import "..\tlb\sap2000.tlb" can't solve it.

error:

fatal error c1084: cannot read type library file: 'c:\users\yanyan\desktop\test\test\test\tlb\sap2000.tlb': error loading type library/dll. 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -