Things You'll Need
Instructions
Download and extract PopCap's game development framework from http://developer.popcap.com
Create a new empty Win32 project
Add the PopCap Framework project to your solution.
Do this by going to File -> Add... -> Existing Project...
Navigate to your PopCap Framework directory and load the project under: source/sexyappframework/SexyAppBase.vcproj
Add dependency libraries: winmm.lib and wsock32.lib
- Right-click your project and select Properties.
Add the PopCap's SexyAppFramework source directory to your include path.
- Under C++ -> General -> Additional Include Directories add the path to your PopCap Framework source directory.
Add the DirectX include and lib directories to your development environment. The framework needs to be able to find this.
- Select Tools -> Options...
And now some code. Add a Main.cpp file to your project. Include the SexyAppBase.h header and create a standard WinMain function. Everything should build. Your ready to start coding!
- Change the Configuration to "All Configurations"
- Under Linker -> Input -> Additional Dependencies add:
winmm.lib wsock32.lib
- Don't close the dialog. You'll use it in the next step.
- Go to Projects and Solutions -> VC++ Directories
- Add the path to your DirectX include directory in the Include files section
- Add the path to your DirectX lib directory in the