winmain在哪 当我们用VC6++的向导生成一个工程时,我没看到WINMAIN(),请问在哪?程序如何执行啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看深入浅出MFC~那里有解释~ /////////////////////////////////////////////////////////////////////////////// export WinMain to force linkage to this moduleextern int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow);extern "C" int WINAPI_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow){ // call shared/exported WinMain return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);}我在MFC的源码中搜,只搜到以上这两个,就是没有WinMain(),不知道怎么回事。 CXXXXApp InitInstanceCXXXApp theApp; 你用mfc编程,他是将winmain封装起来的,如果你连这个都还不是很清楚的话,那么我觉得你,应该从sdk下手比较的好,因为当你熟悉了sdk时候,用mfc的话就如鱼得水这纯属个人意见 在向导中选择win32的工程,不要选mfc exe。 VC6写的MFC程序,无法长时间运行,为何? 在WIN7中编程实现让XP的程序以兼容性运行? 求函数的使用方法!~ 在线程函数里面调用一些类的成员函数总是失败,是怎么回事?? 想做一个类似微软拼音中的软键盘,请大家给点建议好吗? 为什么学不会VC++? 如何在CPP文件中用好自定义的头文件 C#中的gb2312和unicode字符编码把我搞糊了。 怎么样Remoting the Windows Media Player Control? 对面的高手看过来 怎样从头开始学习串口编程? 急,急,急!如何在ActiveX控件显示一个带文档类的View,最好有例子,谢谢!
那里有解释~
// export WinMain to force linkage to this moduleextern int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow);extern "C" int WINAPI
_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}我在MFC的源码中搜,只搜到以上这两个,就是没有WinMain(),不知道怎么回事。
InitInstance
CXXXApp theApp;