≪ サンプル ≫
≪ GWsystem.h ≫
//---------------------------------
#ifndef __GWsystem_Header_
#define __GWsystem_Header_
#include "windows.h"
#include "stdio.h"
#define _CODE 0
typdef struct tag_Sprite
{
int x;
int y;
int bank;
}SPRITE, *LPSPRITE;
#endif //__GWsystem_Header_
//---------------------------------
≪ WinMain.h ≫
#include "GWsystem.h" //呼び出し側は、特に気にせずに使えます。
。
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR pCmdLine,
int nCmdShow)
{//WinMain
MessageBox( NULL, "プログラム終了", "テスト", MB_OK );
return 0;
}
|