Professional Documents
Culture Documents
Pointers
Don’t actually hold a value
Refers to a location in memory; memory address
Often used to refer to other variables
* is used when declaring a variable as a pointer
int *nCnt = 0;
Need to Know About C++ Before Starting
References
Don’t actually hold a value
Refers to the value of another variable; think of an alias
& is used when declaring a variable as a reference
Used to return more than one value from a function
Need to Know About C++ Before Starting
The libraries are broken up into shared, and 32-bit and 64-bit
specific files:
inc
inc-win32 and lib-win32
inc-x64 and lib-x64
Common ObjectARX Libraries
DBCURVE_METHODS
Acad::ErrorStatus getOffsetCurvesGivenPlaneNormal(
const AcGeVector3d& normal, double offsetDist,
AcDbVoidPtrArray& offsetCurves) const;
if (nRetVal != RTERROR)
{
acutPrintf(_T("\nValue: %.2f\n"), pResVal->resval.rreal);
acutRelRb(pLISPArgs);
acutRelRb(pResVal);
} else {
acutPrintf(_T("\nERROR: AutoLISP expression couldn't be invoked."));
}
}
Requesting User Input
Requesting User Input
Check out the handouts for the following session for more
information on working with ObjectARX: