Wednesday, December 21, 2005

Configuring Visual C++ 2005 Express for WxWidgets

Required
- Visual C++ 2005 Express Beta
- Windows XP SP2 Platform SDK
- WxWidgets 2.6.2

Here is a link to Gareth's Notes on Compiling WxWidgets with Visual C++ 2005 Express.

Additional Notes
- This list of library includes are required when building an application against any of the configurations. In addition to the appropriate wxWidgets libraries.
shell32.lib gdi32.lib kernel32.lib user32.lib comdlg32.lib ole32.lib oleaut32.lib advapi32.lib

- It is easier to compile the library with the wx_dll.dsw workspace since it takes care of all dependencies

- Cleaning your solution (removing all of the compiled files) will dump your setup.h for whatever reason so keep a backup copy.

Tuesday, December 20, 2005

WxWidgets Application redist with VC 8 Express Edition

I have run into some distribution nightmares with Visual C++ Express Edition. And have come up with the solution thanks to Nikola Dudar's WebLog and an article over at CodeProject by oshah.

Installation on Windows 98 SE:
Requires only the msvcm80.dll, msvcr80.dll and msvcp80.dll files to be in the same directory as the application or in the system folder. I have tested this with my WxWidgets application and it works perfectly.


Installation on Windows 2000:

Right now the installation seems to work the same on Windows 2000 as it does with Windows 98. I just tested it on my VPC. It only requires the msvcm80.dll, msvcr80.dll and msvcp80.dll files to be in the same directory as the application or in the system folder.
Tested with:
- Service Pack 4
- All Updates


Installation on Windows XP:

Follow the steps in this article on Nikola Dudar's WebLog. Run the steps and create a msi that needs to be run on all PCs the application will be installed on. Therefore there are no DLLs necessary.
Tested with:
- Service Pack 2
- A Few minor Updates

Installation on newer then Windows XP
Unfortunately I don't have any version of Windows newer then XP, so if anyone tests these theories please post the results.

A big thanks to oshah for pointing me in the right direction, since I have been stumbling around looking an answer for a few weeks now.

Later :)

Diilb