ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Porting 2004 -> 2007 "ACHAR *" Error Message

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
301 Views, 3 Replies

Porting 2004 -> 2007 "ACHAR *" Error Message

Hello,

I have open a c++ AutoCAD 2004 Project in Visual Studio 2005.

I got the following warning message:
in Code Line:
acedGetVar("VIEWSIZE", &view);

Fehler 1 error C2664: 'acedGetVar': Konvertierung des Parameters 1 von
'const char [9]' in 'const ACHAR *' nicht möglich
c:\Projekts\MyApp\StdAfx.cpp 356

I have no Idea how to fix this error. Can you help me ?

Regards
Peter
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

You're making a UNICODE build for AutoCAD 2007 ?

If so, you must use the _T() macro for literal strings:

acedGetVar(_T("VIEWSIZE"), &view).;

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Peter Hibbe" wrote in message news:5137106@discussion.autodesk.com...
Hello,

I have open a c++ AutoCAD 2004 Project in Visual Studio 2005.

I got the following warning message:
in Code Line:
acedGetVar("VIEWSIZE", &view);

Fehler 1 error C2664: 'acedGetVar': Konvertierung des Parameters 1 von
'const char [9]' in 'const ACHAR *' nicht möglich
c:\Projekts\MyApp\StdAfx.cpp 356

I have no Idea how to fix this error. Can you help me ?

Regards
Peter
Message 3 of 4
Anonymous
in reply to: Anonymous

I am trying to use the _T macro, but am receiving this error:

error C3861: '_T': identifier not found

What would cause this ?
Message 4 of 4
Anonymous
in reply to: Anonymous

You need to make sure that tchar.h is #included in your source file either
directly or indirectly.

wrote in message news:5147894@discussion.autodesk.com...
I am trying to use the _T macro, but am receiving this error:

error C3861: '_T': identifier not found

What would cause this ?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost