こんな風かな
逆から考えてみた。
#include "def.h" int WINAPI WinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, LPCSTR szCmdLine, int nCmdShow) { gui::Application app( hCurInst, szCmdLine, nCmdShow ); gui::Window* w = new directx::Screen( 100, 100, 640, 480 ); app.appendWindow( w ); return app.run(); }
こんなん考えるより、中身作れって話なんですけどね。