#include <windows.h> extern "C" __declspec(dllimport) int __stdcall MessageBoxA(HWND, LPCSTR, LPCSTR, UINT); // or extern "C" __declspec(dllimport) int __stdcall MessageBoxA(void *, const char[], const char[], unsigned int);
#include <windows.h> int main() { MessageBoxA(NULL, "world!", "Hello", 0); return 0; }