Go Back   Northcode Support > SWF Studio Plugin Development
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 2007-03-14, 11:57 AM   #1
dc.groups
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.
__________________
DC
dc.groups is offline   Reply With Quote
Old 2007-03-15, 02:11 PM   #2
Dan
Registered User
 
Dan's Avatar
 
Join Date: May 2003
Location: Ottawa
Posts: 416
The current Plugin SDK does not compile under Unicode.

There are options, though, and the best course of action is to contact us directly by email at support@northcode.com, and provide us with some details as to what development environment you are using.
Dan is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes