Click here to Skip to main content
15,868,440 members
Articles / Programming Languages / C++
Tip/Trick

Using wxWidgets in FireBreath

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
18 Apr 2012CPOL 15.8K   3
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)


Written By
Technical Lead Kotha Technologies
Bangladesh Bangladesh
If you are not in - you are out !
- Chapter 1

Comments and Discussions

 
Questionmuch information about wxWidget in Firebreath Pin
88963822-Apr-12 15:38
88963822-Apr-12 15:38 
AnswerRe: much information about wxWidget in Firebreath Pin
Mukit, Ataul22-Apr-12 20:00
Mukit, Ataul22-Apr-12 20:00 
QuestionThe example is for unicode debug builds Pin
Mukit, Ataul19-Apr-12 7:08
Mukit, Ataul19-Apr-12 7:08 

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

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