
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I decided to try and learn how to program on AutoCAD using C++. I use linux (Ubuntu) at home so I have used VirtualBox and installed Windows 8 Enterprise Evalution 64bit, AutoCAD Civil 3D 2014, Autodesk ObjectARX 2014 win 64 and its documentation, Microsoft Visual Studio Express 2012 (Visual C++ 2012).
Using ObjectARX dokumenttion set settings for project and copy - past first minimal example. And it worked. But trying to build next example (command registration "acedRegCmds") I get 5 errors. And it happens only after including "aced.h".
1 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in test01.obj (File: rxapi.lib(libinit.obj))
and other errors are
LNK2019: unresoled external symbol...
And I can't find a fix for it.
#include "stdafx.h" #include "tchar.h" #include "rxregsvc.h" #include "acutads.h" #include "aced.h" void initApp(); void unloadApp(); void helloWorld(); void initApp() { acedRegCmds->addCommand(_T("HELLOWORLD_COMMANDS"), _T("Hello"), _T("Labas"), ACRX_CMD_TRANSPARENT, helloWorld); } void unloadApp() { acedRegCmds->removeGroup(_T("HELLOWORLD_COMMANDS")); } void helloWorld() { acutPrintf(_T("\n Labas pasauli!")); } extern "C" AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* appId) { switch(msg) { case AcRx::kInitAppMsg: acrxUnlockApplication(appId); acrxRegisterAppMDIAware(appId); initApp(); acutPrintf(_T("\nExample Application Loaded")); break; case AcRx::kUnloadAppMsg: unloadApp(); acutPrintf(_T("\nExample Application Unloaded")); break; } return AcRx::kRetOK; }
Solved! Go to Solution.