3 ms·
To be clear the equivalent C++ code is: #include <windows.h> extern "C" __declspec(dllimport) int __stdcall MessageBoxA(HWND, LPCSTR, LPCSTR, UINT);
by tredre3 1y ago
To be clear the equivalent C++ code is:
#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);
It's not exactly a stellar improvement.
- npalli 1y agoLol, no this is the equivalent #include <windows.h> int main() { MessageBoxA(NULL, "world!", "Hello", 0); return 0; }