Hi travimca, I just saw your post!
Try the following 4:
- use TCHAR definitions instead of char; Autodesk ACHAR is actually Microsoft's TCHAR :-).
i.e.:
#include
TCHAR name[20];
acedDefun(name, i);
TCHAR *fname;
fname = rbf->resbal.rstring;
- use all TCHAR functions, instead of char ones [use _tcslen() instead of strlen(), _tcscpy() instead of strcpy(), etc.] and use _T("a happy string") instead of "a happy string".
- use Autodesk functions for memory allocation & deallocation purposes
i.e.:
struct *rb=NULL;
rb = acutBuildList(str, RTNONE);
/* do what you want */
acutRelRb(rb);
- use WideToAnsi()/AnsiToWide() functions to copy between TCHAR and char and vise-versa (in ObjectARX 2007+ UNICODE is defined):
#ifdef UNICODE
#define WideToAnsi(src,dst) WideCharToMultiByte(CP_ACP,0,src,-1,dst,lstrlen(src)+1,NULL,NULL)
#define AnsiToWide(src,dst) MultiByteToWideChar(CP_ACP,0,src,-1,dst,strlen(src)+1)
#else
#define WideToAnsi(src,dst) strcpy(dst,src)
#define AnsiToWide(src,dst) strcpy(dst,src)
#endif
Regards,
yannis