PDA

View Full Version : acedGetPoint() question



chris.kulhanek
2006-07-27, 11:10 PM
Hello,

I have just recently upgraded from acad 2005 to 2007 as well as objectARX SDK. in .net 2002 my function call compiled just fine, in 2007 it does not. here is the line for the error, and below is the error .net is throwing me.

line of code
if((rc = acedGetPoint(NULL, "Pick insertion point: \n",insert)) == RTNORM)

error
1>h:\arx\test1\test1\acrxentrypoint.cpp(90) : error C2664: 'acedGetPoint' : cannot convert parameter 2 from 'const char [24]' to 'const ACHAR *'

what is this new ACHAR pointer that is being referred to? why doesn't my line of text work, was this ADS function call changed for ARX 2007? thanks for the help.

CK

chatcher
2006-08-01, 12:24 PM
Unicode is a requirement starting with 2007. ACHAR is a type autodesk has defined to utilize this instead of using TCHAR.

Try using this macro for literal strings: _T("Pick Insertion Point \n")