在工程.cpp文件(Project1.cpp)中加入:
#include "Unit1.h"
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
Application-Initialize();