Hi res,

Wednesday, August 29, 2007, 3:17:58 PM, you wrote:

> On 29.08.2007 12:50, Piotr Obrzut wrote:
>> That's true, though I see same problems in CS wx plugin, check
>> "csGraphics2DWX::FindPixelFormat" (you will find 'RegisterClassA', or
>> "const char* dummyClassName = "CSGL_DummyWindow";").

> You're mixing up Win32 and WX.

> On Win32, CS should never be compiled with UNICODE set. We don't have to
> check for that. No need for #ifdefs, just use *A functions all the time.

> WX on the hand may be compiled in Unicode. (I think possibly even when
> your "main" application isn't.) So for interaction with WX you need to
> use wxChar, wxString, wxT etc. to make it properly build in either case.
> AFAICS wxgl is doing that.

ok, then try to build the plugin with wxWidgets in Unicode, without
UNICODE. Check this:

1>------ Build started: Project: appwxtest, Configuration: Debug Win32 ------
1>Compiling...
1>wxtest.cpp
1>e:\programowanie\wxwidgets-2.8.4\include\wx\msw\winundef.h(39) : error C2664: 
'CreateDialogParamW' : cannot convert parameter 2 from 'LPCTSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast
1>e:\programowanie\wxwidgets-2.8.4\include\wx\msw\winundef.h(70) : error C2664: 
'CreateFontW' : cannot convert parameter 14 from 'LPCTSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast
1>e:\programowanie\wxwidgets-2.8.4\include\wx\msw\winundef.h(96) : error C2664: 
'CreateWindowExW' : cannot convert parameter 2 from 'LPCTSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast
1>e:\programowanie\wxwidgets-2.8.4\include\wx\msw\winundef.h(112) : error 
C2664: 'LoadMenuW' : cannot convert parameter 2 from 'LPCTSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast
1>e:\programowanie\wxwidgets-2.8.4\include\wx\msw\winundef.h(318) : error 
C2664: 'LoadIconW' : cannot convert parameter 2 from 'LPCTSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast
1>e:\programowanie\wxwidgets-2.8.4\include\wx\msw\winundef.h(331) : error 
C2664: 'LoadBitmapW' : cannot convert parameter 2 from 'LPCTSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast
1>e:\programowanie\wxwidgets-2.8.4\include\wx\msw\private.h(781) : error C2664: 
'GetModuleFileNameA' : cannot convert parameter 2 from 'wxStringBuffer' to 
'LPCH'
1>        No user-defined-conversion operator available that can perform this 
conversion, or the operator cannot be called
1>Build log was saved at 
"file://e:\programowanie\cs\out\debug8\build\appwxtest\BuildLog.htm"
1>appwxtest - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========


-- 
greetings,
 Piotr Obrzut                           mailto:[EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to