Click here to Skip to main content
Click here to Skip to main content

Tagged as

Using wxWidgets in FireBreath

, 18 Apr 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
How to use wxWidgets in FireBreath

Introduction

This tip is about how to successfully incorporate wxWidgets with FireBreath.

Background

I ran into a lot of problems trying to incorporate widgets in the firebreath framework. Finally after a lot of web search, I could come up with a solution and this tip is just to help people like me having trouble with firebreath and widgets so that all information can be at the same place.

Solution

First of all, you have to compile wxWidgets with Multithreaded Debug/Release configuration in code generation rather than Multithreaded Debug/Release DLL.

If you are using unicode character set, then you have to define #define wxUSE_UNICODE 1 in the setup.h file of widgets (usually it's in C:\wxWidgets-2.8.12\lib\vc_lib\mswud\wx for unicode debug builds).

Most importantly, you may have to place this line in the .cpp file where you are using wxWidget related classes:

#pragma
comment(lib, "comctl32.lib") 

And finally, the following should be a list of .lib files that are required to link the project successfully:

kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
psapi.lib
..\..\ActiveXCore\Debug\ActiveXCore.lib
..\..\PluginCore\Debug\PluginCore.lib
PluginAuto\Debug\NBP_PluginAuto.lib
..\..\NpapiCore\Debug\NpapiCore.lib
..\..\ScriptingCore\Debug\ScriptingCore.lib
..\..\boost\libs\thread\Debug\boost_thread.lib
..\..\boost\libs\system\Debug\boost_system.lib
Wininet.lib
oleacc.lib
wxmsw28ud_core.lib
wxbase28ud.lib
rpcrt4.lib
winmm.lib
wsock32.lib 

History

  • 19th April, 2012: Tip uploaded

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Mukit, Ataul
Chief Technology Officer Rational Technologies
Bangladesh Bangladesh
C++ is not C with classes, JQuery is not Javascript, Google Search is not Learning, Design Patterns are not fashion, A code written in 2005 is not backdated just because it's 2015
Follow on   Twitter

Comments and Discussions

 
Questionmuch information about wxWidget in Firebreath Pinmember88963822-Apr-12 16:38 
AnswerRe: much information about wxWidget in Firebreath PinmemberMukit, Ataul22-Apr-12 21:00 
QuestionThe example is for unicode debug builds PinmemberMukit, Ataul19-Apr-12 8:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411022.1 | Last Updated 19 Apr 2012
Article Copyright 2012 by Mukit, Ataul
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid