Thanks for this information but I have a question about the "_T" meanning.
It works when I write :
acutPrintf(_T("\napplication ObjectARX Minimum chargée!"));
I have " application ObjectARX Minimum chargée! " that appears in my command line but I do not understant the meanning of "_T". Also once I saw "_L" and I did not understand either.
Lachoserouge, I think it'll be much better for you to learn C++.
_T macro or L"" has no relation to ObjectARX.
They tell to compiler that used string data is in unicode format and nothing more.
That's what i'm doing... I'm learning C++ to create ARX objects.
thanks for your help.
Before creating ARX applications U MUST learn C++. It'll be quite hard to learn C++ and ObjectARX at the same time.
Actually, the _T() is a #define which defines the C++ 'L' prefix to strings when the compiler project is set to use the Unicode double byte character set. It enables you to define text as normal MBCS or UNICODE in the same source file.
This is particularily useful if you want your same code to work on all AutoCAD versions...
AutoCAD < 2007 = MBCS
AutoCAD >= 2007 = UNICODE
We have a tool called Teefy which automatically converts your code to use the TCHAR defines, and thus easily makes your code work for both string types, attached.
It currently only works for Visual Studio 2002 (install the 2003 version and then run the reg file), 2003 and 2005 so you will need those to run it. Due to file attachment size restrictions, I've attached the 2005 version here for you.
Fenton Webb
Autodesk Developer Network
Here's the Visual Studio 2003 version with the 2002 reg file.
Fenton Webb
Autodesk Developer Network