[ 2.9.2, Windows 7, VC9] Errors in using wxWidgets 64 bit

21 views
Skip to first unread message

Talent Song

unread,
Aug 5, 2011, 3:31:19 AM8/5/11
to wx-...@googlegroups.com
Dear Sir,
I have built wxWidgets-2.9.2 64-bit with VC9 successfully (no
errors found in samples.sln). But when I tried to build a simple
project under x64 release, errors occured as follows:

E:\Study\wxWidgets-2.9.2\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

The same error could be found in CreateFontW, CreateWindowExW,
LoadMenuW, FindTextW, LoadBitmapW. All of these functions are in
"wxWidgets-2.9.2\include\wx/msw/winundef.h".
My project is a very simple one and errors also remain in every
project that built under wxWidgets-2.9.2 x64 release. Would you please
help me with this? Thank you very much!


xlSong
2011-08-05
--------
Xiaolu Song
Center for Earth Observation and Digital Earth Chinese Academy of Sciences
No.9 Dengzhuang South Road, Haidian District, Beijing 100094, China
Tel: +86-010-82178188 +86-18610335605
Email:talen...@126.com
中国科学院对地观测与数字地球科学中心
北京市海淀区邓庄南路9号

Vadim Zeitlin

unread,
Aug 5, 2011, 7:21:10 AM8/5/11
to wx-...@googlegroups.com
On Fri, 5 Aug 2011 15:31:19 +0800 Talent Song <talent...@gmail.com> wrote:

TS> E:\Study\wxWidgets-2.9.2\include\wx/msw/winundef.h(39) : error C2664:
TS> 'CreateDialogParamW' : cannot convert parameter 2 from 'LPCTSTR' to
TS> 'LPCWSTR'
TS> 1> Types pointed to are unrelated; conversion requires
TS> reinterpret_cast, C-style cast or function-style cast

You seem to be building your project without _UNICODE being defined. You
need to change this in order to use the Unicode build of wx.

Regards,
VZ

Reply all
Reply to author
Forward
0 new messages