|
----------------------------------------------------------------------------------
Borland C++ projects
Please chose from the left side menu.
How to create a standalone exe
(no need for Borland's DLLs and BPLs)
- Go to "Project -> Options"
- On "Linker" tab uncheck the "Use dynamic RTL" checkbox
- On "Packages" tab uncheck the "Build with runtime packages" checkbox
GetLastError
LPVOID lpMsgBuf;
FormatMessage ( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError ( ),
MAKELANGID ( LANG_NEUTRAL, SUBLANG_DEFAULT ),
( LPTSTR ) &lpMsgBuf, 0, NULL );
MessageBox( NULL, (LPCTSTR)lpMsgBuf, "Error", MB_OK | MB_ICONINFORMATION );
LocalFree( lpMsgBuf );
|
|