|
|
|
#1 |
|
Registered User
Join Date: Feb 2007
Posts: 4
|
UNICODE compiling problem
Hi! I am trying to compile my plugin for UNICODE format. I have definded the following preprocessor definitions in my project settings:
WIN32,_DEBUG,_WINDOWS,_USRDLL,_UNICODE,UNICODE Now I have lots of compiling errors in the following cases: 1. DEFINE_PROPERTY(Plugin_Name, TEXT("some plugin name")); I have the error: Plugin.cpp(35) : error C2664: '__thiscall NCPluginProperty::NCPluginProperty(const unsigned short *,const unsigned short *)' : cannot convert parameter 1 from 'char [12]' to 'const unsigned short *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast It seems it doesn't like Plugin_Name constant. The same error for Plugin_Version, Plugin_Author and Plugin_Description. 2. For all DECLARE_PARAMETERS declaration, I receive the same error: DECLARE_PARAMETERS(Plugin, setNotify, TEXT("does the notification")); IN_PARAMETER(event, TEXT("event"), TEXT("all")); OUT_PARAMETER(result, TEXT("out description")); IMPLEMENT_COMMAND(Plugin, setNotify) { return S_OK; } complaining that it cannot convert setNotify, event, result from char[x] to 'const unsigned short *'. Is there anything else I need to do to my project - from NC_Plugin.lib point of view - if I want to compile the project with UNICODE support? I noticed that all methods are passed to the macros with their names and not as a string ... Thanks, DC.
__________________
|
|
|
|