I have been able to resolved most of my issues.
OS Win.Vista.Home.Premium.x64
1. For the COM wrapper(DBX) to be register it is required to disable the: User Account Control (UAC) (a tip I got from the adesk arx forum, and that I have no idea at all, was for so many years in the win32 arena...).
2. Make sure to use the assemblies from the ARX SDK and target to x64!, and for the Autodesk.AutoCAD.Interop.Common.dll and Autodesk.AutoCAD.Interop.dll
use the 'browse' when doing the reference, not the COM tab.
3. For COM calls in your solution like:
AcadApplication acAppCOMObj = Application.AcadApplication as AcadApplication;
using (Transaction tr = db.TransactionManager.StartTransaction())
{
DBObject obj = tr.GetObject(res.ObjectId, OpenMode.ForRead);
ObjEnt = acAppCOMObj.ActiveDocument.HandleToObject(obj.Handle.ToString());
tr.Commit();
}
Can be replace by:
using (Transaction tr = db.TransactionManager.StartTransaction())
{
DBObject obj = tr.GetObject(res.ObjectId, OpenMode.ForRead, false) as DBObject;
if (obj != null)
{
ObjEnt = obj.AcadObject; //<<=
}
tr.Commit();
}
4. There were some other calls in my code, that work in win32 but not in x64, I will try to document that, and once I get the chance to posted here, when possible.
5. Still I have the issue to focus to AutoCAD drawing area, after clicking a button from a modeless form, to make a selection (via GetEntity), when you get the cross hairs, instead of the pick box, so you have to make a click first to make the focus and then be able to do the selection, what it is interesting is that if you do this from a debug session, you don't see this issue... hmm
Have tried, with - no success:
Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView();
SetFocus(Autodesk.AutoCAD.ApplicationServices.Application.MainWindow.Handle);
SetForegroundWindow(Autodesk.AutoCAD.ApplicationServices.Application.MainWindow.Handle);