Results 1 to 2 of 2

Thread: acedGetPoint() question

  1. #1
    Member
    Join Date
    2006-06
    Posts
    18
    Login to Give a bone
    0

    Default acedGetPoint() question

    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

  2. #2
    Member
    Join Date
    2001-04
    Posts
    32
    Login to Give a bone
    0

    Default Re: acedGetPoint() question

    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")

Similar Threads

  1. Replies: 1
    Last Post: 2012-07-03, 06:09 PM
  2. DCL question...
    By eriss in forum AutoLISP
    Replies: 6
    Last Post: 2008-03-19, 01:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •