I have a really strange problem with GetLastError and managed C++. GetLastError is returning something very strange after transitioning from unmanaged code to managed code.
#include <iostream> #include <Windows.h> using std::cout; using std::endl; using std::cin; int main()
Fun exploring some legacy code today. Ran into this little number: function Func1() { DWORD dwError; try {
CreateFile for example. When I get INVALID_HANDLE_VALUE, what are all the possible values that can be returned by GetLastError? MSDN doesn\'t say. It mentions some and I can guess others, but how (if
I\'m using ReadFile() on Windows to read data from a serial port. This code was working fine at one point in time, but it\'s now failing and I\'m trying to track down the source of the problem, so I d
I\'m trying to write a program which executes make.exe from MinGW distribution in the current directory and makes use of its STDOUT data and exit code. I have a handle to process STDOUT where I fetch
We have been facing a small problem in MySQL procedure. We have placed some exception handlers inside the procedure. But we want to retrieve the errorcode of any error that can occur inside a procedur
I have a Named Pipe and It Works Fine While I access开发者_开发问答 it using a Client which runs on My System
In another question, we established that yes, CreateDirectory occasionally fails with the undocumented GetLastError value of ERROR_ACCESS_DENIED, and that the right way to handle the situation is prob
My Win32 app A1 (actually a collection of processes) is trying to use CreateDirectory to create a directory D1 within parent directory P. The path to P is the value of the TMP environment variable, wh