[ wxwindows-Bugs-1719180 ] Wince mixed application MFC and wxwidgets

SourceForge.net noreply at sourceforge.net
Tue Feb 26 07:10:40 PST 2008


Bugs item #1719180, was opened at 2007-05-15 10:19
Message generated for change (Comment added) made by juliansmart
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1719180&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: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Mareq (mareqq)
>Assigned to: Nobody/Anonymous (nobody)
Summary: Wince mixed application MFC and wxwidgets

Initial Comment:
Take a look at last post in
http://wxforum.shadonet.com/viewtopic.php?t=1542.

I wrote there a solution for the problem. It is needed to be added to CVS:



Hello. 

I had the same problem (in VS 2005). 

First, I built wxWinCE as dynamic DLL with dynamically linked run-time libraries (msvcrt.dll). See my posts: 

http://wxforum.shadonet.com/viewtopic.php?t=14056 
http://wxforum.shadonet.com/viewtopic.php?t=14077 

Then, I was trying to compile my MFC application with this wxWinCE buid, but got the same error: 

wx\msw\winundef.h(39) : error C2065: 'FindResource' : undeclared identifier 

So I looked deeper into wxWinCE *.h files and found out the solution. I replaced the lines 2815-2841 of wx/defs.h to use wx/msw/winudef.h. I think that this was a mistake in wxWinCE. 

This is the resolution (wx/defs.h): 
wxwidgets: 

/*  This is required because of clashing macros in windows.h, which may be */ 
/*  included before or after wxWidgets classes, and therefore must be */ 
/*  disabled here before any significant wxWidgets headers are included. */ 
#ifdef __WXMSW__ 
/*#ifdef GetClassInfo 
#undef GetClassInfo 
#endif 

#ifdef GetClassName 
#undef GetClassName 
#endif 

#ifdef DrawText 
#undef DrawText 
#endif 

#ifdef GetCharWidth 
#undef GetCharWidth 
#endif 

#ifdef StartDoc 
#undef StartDoc 
#endif 

#ifdef FindWindow 
#undef FindWindow 
#endif 

#ifdef FindResource 
#undef FindResource 
#endif*/ 
#include "wx/msw/winundef.h" 
#endif 
  /*  __WXMSW__ */ 
  


ABX, will you put these my patches in wxWidgets CVS? 
I do not want to do it myself  
(please also patches in 2 links - how I changed wxWinCE to be built as dynamic DLL). 

Or should I put these also in wxWidgets bug tracker? I am lasy to do it 

----------------------------------------------------------------------

>Comment By: Julian Smart (juliansmart)
Date: 2008-02-26 15:10

Message:
Logged In: YES 
user_id=59495
Originator: NO

In patch manager so presumably this item is no longer needed.

----------------------------------------------------------------------

Comment By: Mareq (mareqq)
Date: 2007-08-17 06:45

Message:
Logged In: YES 
user_id=1792574
Originator: YES

Resolved in patch.
http://sourceforge.net/tracker/index.php?func=detail&aid=1774707&group_id=9863&atid=309863

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1719180&group_id=9863




More information about the wx-dev mailing list