Wednesday, March 01, 2006

VC++ programs in BC++

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);


Post a Comment

<< Home