Compiling and Running the Program

team bbl


The sample can be found on the accompanying CD-ROM in examples/chap02, which you should copy to a folder on your hard drive for compiling. Because it's not possible to provide makefiles that work "out of the box" with every reader's software environment, we provide a DialogBlocks project file with configurations for most platforms and compilers. See Appendix C, "Creating Applications with DialogBlocks," for help with configuring DialogBlocks for your compiler. We also cover compiling wxWidgets applications in detail in Appendix B, "Building Your Own wxWidgets Applications."

Install wxWidgets and DialogBlocks from the accompanying CD-ROM. On Windows, you should install one or more of the compilers provided on the CD-ROM if you do not already own a suitable compiler. After setting your wxWidgets and compiler paths in the DialogBlocks Paths settings page, open the file examples/chap02/minimal.pjd. Select a suitable configuration for your compiler and platform such as MinGW Debug or VC++ Debug (Windows), GCC Debug GTK+ (Linux), or GCC Debug Mac (Mac OS X), and press the green Build and Run Project button. You may be prompted to build wxWidgets if you have not already built it for the selected configuration.

You can also find a similar sample in samples/minimal in your wxWidgets distribution. If you do not wish to use DialogBlocks, you can simply compile this sample instead. See Appendix A, "Installing wxWidgets," for instructions on how to build wxWidgets samples.

    team bbl



    Cross-Platform GUI Programming with wxWidgets
    Cross-Platform GUI Programming with wxWidgets
    ISBN: 0131473816
    EAN: 2147483647
    Year: 2005
    Pages: 262

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net