Hi all, I am a beginner of objectARX.
I had created two simple project using ObjectARX wizard, one for ARX and another one for DBX. After implement a custom entity in DBX project, I reference this custom entity in a command inside the ARX project. So I add a dependency from ARX to DBX in the property sheet of solution.
Finally I load these modules in AutoCAD(of coz, DBX first and ARX later), it tells me a fail message as below:
/ ================================
| acrxGetApiVersion not found in E:\......\TonyCustEntityARX.arx
| Make sure the app links with rxapi.lib and export the symbol.AcRxDynamicLinker
| failed to load 'E:\......\TonyCustEntityARX.arx'
| D:\.......\acad.exeUnable to load TonyCustEntityARX.arx file.
\ =================================
It seems lack of exporting acrxGetApiVersion method, and it is confirmed after I checked the export section of .arx file, there was only acrxEntryPoint exported.
What should I do with this situation?
P.S. if remove the dependency from ARX to DBX, everything works as it should be, and I checked the export section of .arx file, there is an acrxGetApiVersion there.
P.S.2 I had tried to add a .def file to export acrxGetApiVersion method, as below:
/ =======================================
| LIBRARY TonyCustEntityARX
| ;--------------------------------------
|
| EXPORTS
| acrxGetApiVersion PRIVATE
\ ========================================
and I get a different fail messenage which made me very depressed:
/ =========================================
| TonyCustEntityARX.arx is incompatible with this version of AutoCAD.
| AcRxDynamicLinker failed to load 'E:\.....\TonyCustEntityARX.arx'
| D:\.....\acad.exeUnable to load TonyCustEntityARX.arx file.
\ =========================================
any reply will be appreciated.
Findekano