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