
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am in need of some help getting a custom .arx to work in 2015. I use Visual studio 2012 (which i had never opened before this)
Im not a software engineer and I am learning by doing, so bare with me...The original programmer has left the building and holds us ransom.
What the program should do:
Add a button to the toolbar, that stays there between sessions, and opens the custom program when pressed
What it does after my clueless fiddling right now. (AKA googleing the debugg errors, there were alot of them, close to a gazilion):
.arx works, however the button doesnt show up in the toolbar until the command is typed in the commandprompt. Button goes away between sessions.
I believe the reason is that i have dubbleslashed something that i shouldnt.. just to get a succesfull build.
The Error i get if i dont dubbleslash HWND in acedads.h is:
Error C2732: linkage specification contradicts earlier specification for (adsw_acadMainWnd)
acrxEntryPoint.cpp(64)
In acrxEntryPoint.cpp #define szRDS _RXST("") extern "C" HWND adsw_acadMainWnd();
In acedads.h const ACHAR * acedGetAppName (); int acedUpdate(int vport, ads_point p1, ads_point p2); #if defined(_WINDEF_) || defined(_ADESK_MAC_) /* AutoCAD graphics window handle */ HWND adsw_acadMainWnd(); #ifndef adsw_hwndAcad #define adsw_hwndAcad adsw_acadMainWnd() #endif /* MFC "Document View" window handle */ ACCORE_PORT HWND adsw_acadDocWnd(); #endif // _WINDOWS_
Those are the 2 instances of 'adsw_acadMainWnd' i can find.
I've tried google, yes. But can anyone help me with what to type instead? Or maybe my problem lies somewhere else?
Bonus questions:
I force the msi-installation to ..\ProgramData\Autodesk\ApplicationPlugins
Yay or Nay?
The original programmer left a subfolder with regkeys looking like this:
Appname18.1-9000-AutoCAD Civil 3D 2011.reg . . . . Appname19.1-D001-AutoCAD 2014
Do i need to some miracle things with these and add a F-thingy? What and how? Add them to the msi?
Thank you for your time!
Solved! Go to Solution.