www.pudn.com > ics.zip > TNSRV.CPP, change:1999-03-06,size:853b


//--------------------------------------------------------------------------- 
#include <vcl\vcl.h> 
#pragma hdrstop 
//--------------------------------------------------------------------------- 
USERES("TnSrv.res"); 
USEFORM("..\tnsrv2.cpp", ClientForm); 
USEFORM("..\tnsrv1.cpp", ServerForm); 
//--------------------------------------------------------------------------- 
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) 
{ 
    try 
    { 
        Application->Initialize(); 
        Application->CreateForm(__classid(TServerForm), &ServerForm); 
        Application->CreateForm(__classid(TClientForm), &ClientForm); 
        Application->Run(); 
    } 
    catch (Exception &exception) 
    { 
        Application->ShowException(&exception); 
    } 
    return 0; 
} 
//---------------------------------------------------------------------------