To get your Visual C++ programs to run in Borland C++, you'll have to devise some means to call the WinMain method. The following is a method that can do this for you:
int main() { HINSTANCE hInstance = GetModuleHandle(NULL); LPSTR CmdLine = GetCommandLine(); int ret = WinMain(hInstance, NULL, CmdLine, SW_SHOWDEFAULT); ExitProcess(ret); }
posted by Nitin Reddy Katkam at 2:53 AM on Mar 1, 2006
"VC++ programs in BC++"
No comments yet. -