¡@

Home 

c++ Programming Glossary: nerror

How to read a value from the Windows registry

http://stackoverflow.com/questions/34065/how-to-read-a-value-from-the-windows-registry

DWORD dwBufferSize sizeof DWORD DWORD nResult 0 LONG nError RegQueryValueExW hKey strValueName.c_str 0 NULL reinterpret_cast.. LPBYTE nResult dwBufferSize if ERROR_SUCCESS nError nValue nResult return nError LONG GetBoolRegKey HKEY hKey const.. if ERROR_SUCCESS nError nValue nResult return nError LONG GetBoolRegKey HKEY hKey const std wstring strValueName..

Serial Comm using WriteFile/ReadFile

http://stackoverflow.com/questions/6036716/serial-comm-using-writefile-readfile

0 GetLastError 0 char ptr 1024 NULL fprintf stderr nError s s n name ptr LocalFree ptr int main int argc char argv int..