Creating a break point that hits on calling win32 api

Create a break point that hits when CreateProcess was called Enter a Function Breakpoint Enter {,,kernel32.dll}CreateProcessW in the textbox labelled as ‘Function Name’. Showing call stack First, the break point might not hit in the main thread, in that case choose the main thread or other thread that you expect to call CreateProcess. For example,… Continue reading Creating a break point that hits on calling win32 api

“new.h” or “ctype.h” is missing in Visual Studio 2017

Visual Studio has some bugs to not find install component properly. If you encounter this error, take a following step. 1, Launch Visual Studio Installer. If it starts to update itself. The problem may be fixed. Just update it (not install any components). 2, Launch your Solution. If Visual Studio failed to load projects properly,… Continue reading “new.h” or “ctype.h” is missing in Visual Studio 2017

Visual Studio’s resource editor fails to open a Form because the class is not the first class in the header file (C++/CLI)

Suppose you have a following header file and tries to open it in the resource editor of Visual Studio. namespace Ambiesoft { using namespace System;   ref class EncComboItem; ref class CSearchURL;   ref class AddHttpDicDialog : public System::Windows::Forms::Form { … } }namespace Ambiesoft { using namespace System; ref class EncComboItem; ref class CSearchURL; ref… Continue reading Visual Studio’s resource editor fails to open a Form because the class is not the first class in the header file (C++/CLI)

How to check Windows or process is 64bit

typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL); bool Is64BitWindows() { #if defined(_WIN64) return true; // 64-bit programs run only on Win64 #elif defined(_WIN32)   // 32-bit programs run on both 32-bit and 64-bit Windows // so must sniff BOOL f64 = FALSE; LPFN_ISWOW64PROCESS fnIsWow64Process;   fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(GetModuleHandle(TEXT("kernel32")), "IsWow64Process"); if (NULL != fnIsWow64Process) { return !!(fnIsWow64Process(GetCurrentProcess(),… Continue reading How to check Windows or process is 64bit

Differences of Command prompt of Visual Studio

There are many kind of shortcuts of command prompt of Visual Studio. Basically the differences are the setting of Host and Target. Host refers to the compiler or linker of which 64bit or 32bit is chosen. Target refers to the resultant exe or dll which is targeted 64bit or 32bit. Developer Command Prompt for VS… Continue reading Differences of Command prompt of Visual Studio