acozz
03-25-2004, 09:58 PM
Alright, it has come to my attention that Cover Art Vis isn't working in Win98, and I think this is because of a unicode issue.
Some things to know:
- pluginInfo->version = PLUGIN_API_VERSION_WANTUTF8;
- UNICODE is defined
- unicows.lib is the first library I attach with a #pragma in QCDVisualsDLL.cpp, I assume this carries through all my source code files which all use unicode
- I never use TCHARs or LPTSTR, I always explicitly use WCHAR of WCHAR*
- Whenever I call a QCD op that returns char*, I follow it with the op to convert it to UC2 and put that in a WCHAR*.
The problem as I understand it is that unicode strings are failing to be used, as when the Win98 user goes into the config dialog, there is no text in the list boxes and any entered text isn't saved.
Anything I should know or am doing wrong? Any help is appreciated.
Some things to know:
- pluginInfo->version = PLUGIN_API_VERSION_WANTUTF8;
- UNICODE is defined
- unicows.lib is the first library I attach with a #pragma in QCDVisualsDLL.cpp, I assume this carries through all my source code files which all use unicode
- I never use TCHARs or LPTSTR, I always explicitly use WCHAR of WCHAR*
- Whenever I call a QCD op that returns char*, I follow it with the op to convert it to UC2 and put that in a WCHAR*.
The problem as I understand it is that unicode strings are failing to be used, as when the Win98 user goes into the config dialog, there is no text in the list boxes and any entered text isn't saved.
Anything I should know or am doing wrong? Any help is appreciated.