[ wxwindows-Bugs-1748843 ] 2.8.4 MS eVC++
SourceForge.net
noreply at sourceforge.net
Mon Aug 6 04:58:05 PDT 2007
Bugs item #1748843, was opened at 2007-07-06 05:22
Message generated for change (Comment added) made by vadz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1748843&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build -- WinCE
Group: Fatal
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: John W. Lovell (jlovell_esd189)
Assigned to: Julian Smart (juliansmart)
Summary: 2.8.4 MS eVC++
Initial Comment:
I cannot build wxWidgets 2.8.4 for WinCE using Microsoft eMbedded Visual C++ because of a single error.
--------------------Configuration: mono - Win32 (WCE emulator) Release--------------------
Compiling...
combo.cpp
C:\wxWidgets-2.8.4\src\msw\combo.cpp(181) : error C2440: 'initializing' : cannot convert from 'long (__cdecl *)(void *,int,int,int,unsigned long *)' to 'long'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing cl.exe.
wxwince28.lib - 1 error(s), 0 warning(s)
--------------------Configuration: mono - Win32 (WCE ARMV4) Release--------------------
Compiling...
combo.cpp
C:\wxWidgets-2.8.4\src\msw\combo.cpp(181) : error C2440: 'initializing' : cannot convert from 'long (__cdecl *)(void *,int,int,int,unsigned long *)' to 'long'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing clarm.exe.
wxwince28.lib - 1 error(s), 0 warning(s)
----------------------------------------------------------------------
>Comment By: Vadim Zeitlin (vadz)
Date: 2007-08-06 13:58
Message:
Logged In: YES
user_id=71618
Originator: NO
The workaround is wrong, as mentioned previously this code shouldn't be
compiled at all for WinCE. Please check how does it happen that
wxUSE_UXTHEME is 1 when it's supposed to be set to 0 in
wx/msw/wince/setup.h.
----------------------------------------------------------------------
Comment By: Pablo J. Rogina (pablojr)
Date: 2007-08-06 06:48
Message:
Logged In: YES
user_id=55009
Originator: NO
I've got exactly the same error, and my workaround was a cast...
HRESULT hr = (HRESULT) theme->GetThemeColor
after that, wxwince28.lib finally built OK and I could also build the
Life! demo
Regards,
Pablo
----------------------------------------------------------------------
Comment By: Julian Smart (juliansmart)
Date: 2007-07-11 10:56
Message:
Logged In: YES
user_id=59495
Originator: NO
This shouldn't really be using themes in WinCE (how did this compile at
all?) - I've added some tests, so hopefully this won't crop up in 2.8.5...
----------------------------------------------------------------------
Comment By: John W. Lovell (jlovell_esd189)
Date: 2007-07-07 08:20
Message:
Logged In: YES
user_id=1122359
Originator: YES
I downloaded the 2.8.4 Windows package, installed it and tried to compile
it the same way I successfully built 2.6.3. As far as I can tell I didn't
have an opportunity to break the source.
However, I agree that the error doesn't make sense. This kind of error is
fairly familiar on the message boards, however those problems usually have
dozens of similar error messages and are solved by including a missing
library. To have only one seems bazaar.
Was this changed to make it compatible with Vista? A comment near by seed
to imply that might be the case. I haven't upgraded my SDK (I don't know
if I can given that I am using the free tools).
Thanks for looking at this,
John
----------------------------------------------------------------------
Comment By: Vadim Zeitlin (vadz)
Date: 2007-07-06 10:12
Message:
Logged In: YES
user_id=71618
Originator: NO
I don't understand this error at all, it almost seems like the compiler is
trying to assign the GetThemeColor function itself to hr instead of doing
it with its return value. Are you sure you didn't modify the sources
somehow (maybe accidentally)?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1748843&group_id=9863
More information about the wx-dev
mailing list