以前のコードを VS 2010 に変換しようとしています。変換しようとしているコードは以下のとおりです。関数 addCommand は次のように定義されます
addCommand(const ACHAR * cmdGroupName, const ACHAR * cmdGlobalName, const ACHAR * cmdLocalName, Adesk::Int32 commandFlags, AcRxFunctionPtr FunctionAddr,AcEdUIContext *UIContext=NULL, int fcode=-1, HINSTANCE hResourceHandle=NULL, AcEdCommand** cmdPtrRet=NULL)
3 番目の必須引数は ACHAR 型です。関数は次の方法で呼び出されます。
char cmdLocRes[65];
// If idLocal is not -1, it's treated as an ID for
// a string stored in the resources.
if (idLocal != -1) {
// Load strings from the string table and register the command.
::LoadString(_hdllInstance, idLocal, cmdLocRes, 64);
acedRegCmds->addCommand(cmdGroup, cmdInt, cmdLocRes, cmdFlags, cmdProc);
私の問題は、変数 cmdLocRes は char 型ですが、引数は ACHAR 型である必要があることです。
どうすれば同じものを変換できますか?