c语言:将vc程序改成一个tc程序
这是一个大的project。。。希望大牛们帮帮忙,谢谢。有很多个小程序,这是一个超市管理程序。源代码如下:#include<vcl.h>#pragmahdrstop//-...
这是一个大的project。。。希望大牛们帮帮忙,谢谢。有很多个小程序,这是一个超市管理程序。源代码如下:
#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("main.cpp", fm_main);
USEFORM("data.cpp", dm_data); /* TDataModule: File Type */
USEFORM("name_gl.cpp", fm_name_gl);
USEFORM("jinhuo_gl.cpp", fm_jinhuo_gl);
USEFORM("lingshou.cpp", fm_lingshou_gl);
USEFORM("kucen.cpp", fm_kucen);
USEFORM("xiaoshou.cpp", fm_xiaoshou);
USEFORM("newname.cpp", fm_newname);
USEFORM("passwd.cpp", fm_passwd);
USEFORM("check.cpp", fm_check);
USEFORM("xiaopiao.cpp", fm_xiaopiao);
USEFORM("qingli.cpp", fm_qingli);
USEFORM("xiaoshoumx.cpp", fm_xiaoshoumx);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
Application->CreateForm(__classid(Tfm_main), &fm_main);
Application->CreateForm(__classid(Tdm_data), &dm_data);
Application->CreateForm(__classid(Tfm_name_gl), &fm_name_gl);
Application->CreateForm(__classid(Tfm_jinhuo_gl), &fm_jinhuo_gl);
Application->CreateForm(__classid(Tfm_lingshou_gl), &fm_lingshou_gl);
Application->CreateForm(__classid(Tfm_kucen), &fm_kucen);
Application->CreateForm(__classid(Tfm_xiaoshou), &fm_xiaoshou);
Application->CreateForm(__classid(Tfm_newname), &fm_newname);
Application->CreateForm(__classid(Tfm_passwd), &fm_passwd);
Application->CreateForm(__classid(Tfm_check), &fm_check);
Application->CreateForm(__classid(Tfm_xiaopiao), &fm_xiaopiao);
Application->CreateForm(__classid(Tfm_qingli), &fm_qingli);
Application->CreateForm(__classid(Tfm_xiaoshoumx), &fm_xiaoshoumx);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
有能力挑战者请留邮箱。。。我直接发过去。还有很多嵌套的小程序。 展开
#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("main.cpp", fm_main);
USEFORM("data.cpp", dm_data); /* TDataModule: File Type */
USEFORM("name_gl.cpp", fm_name_gl);
USEFORM("jinhuo_gl.cpp", fm_jinhuo_gl);
USEFORM("lingshou.cpp", fm_lingshou_gl);
USEFORM("kucen.cpp", fm_kucen);
USEFORM("xiaoshou.cpp", fm_xiaoshou);
USEFORM("newname.cpp", fm_newname);
USEFORM("passwd.cpp", fm_passwd);
USEFORM("check.cpp", fm_check);
USEFORM("xiaopiao.cpp", fm_xiaopiao);
USEFORM("qingli.cpp", fm_qingli);
USEFORM("xiaoshoumx.cpp", fm_xiaoshoumx);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
Application->CreateForm(__classid(Tfm_main), &fm_main);
Application->CreateForm(__classid(Tdm_data), &dm_data);
Application->CreateForm(__classid(Tfm_name_gl), &fm_name_gl);
Application->CreateForm(__classid(Tfm_jinhuo_gl), &fm_jinhuo_gl);
Application->CreateForm(__classid(Tfm_lingshou_gl), &fm_lingshou_gl);
Application->CreateForm(__classid(Tfm_kucen), &fm_kucen);
Application->CreateForm(__classid(Tfm_xiaoshou), &fm_xiaoshou);
Application->CreateForm(__classid(Tfm_newname), &fm_newname);
Application->CreateForm(__classid(Tfm_passwd), &fm_passwd);
Application->CreateForm(__classid(Tfm_check), &fm_check);
Application->CreateForm(__classid(Tfm_xiaopiao), &fm_xiaopiao);
Application->CreateForm(__classid(Tfm_qingli), &fm_qingli);
Application->CreateForm(__classid(Tfm_xiaoshoumx), &fm_xiaoshoumx);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
有能力挑战者请留邮箱。。。我直接发过去。还有很多嵌套的小程序。 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询