ProToolkitDllLoad有七个参数:
extern ProError ProToolkitDllLoad( ProName app_name,
 roCharPath exec_file,
 roCharPath text_dir,
 roBoolean user_display,
 roToolkitDllHandle* handle,
 roError* user_error_ret,
 roPath user_string_ret );
第一个参数,说 app_name - The name of the application to initialize.
可是我输入ProName app_name = "MyApp";编译后说
error C2440: 'initializing' : cannot convert from 'char [6]' to 'unsigned short [32]' There is no context in which this conversion is possible
后来查ProName,有typedef wchar_t  roName[PRO_NAME_SIZE];
接着又有
#ifndef _WCHAR_T_DEFINED
typedef unsigned short wchar_t;
#define _WCHAR_T_DEFINED
#endif
即是说这是一个unsigned short型的参数,可是在注册文件中,Name是一个字符串。
请各位大大告诉我怎么才能正确的传入参数,感激不尽