use this:
?acedSetCurrentVPort@@YA?AW4ErrorStatus@Acad@@PEBVAcDbViewport@@@Z
instead of this:
?acedSetCurrentVPort@@YA?AW4ErrorStatus@Acad@@PBVAcDbViewport@@@Z
I'm not sure if this affects the 32 bit version of AutoCAD 2011, as I don't have it installed anywhere.
[/quote]
Hi Alex,
of course it does. You're looking at the 64 bit signature above, and the original below is the 32 bit signature; at least with the 2010 release.
Didn't it occur to you just to scan for the text string "acedSetCurrentVPort" in the executable? That should be found at least two times,
because:
Acad::ErrorStatus acedSetCurrentVPort(int vpnumber);
Acad::ErrorStatus acedSetCurrentVPort(const AcDbViewport* pVp);
Cheers, Thorsten