I'm trying to use a simple Windows API.
But my code doesn't create a binary file when I use 'MessageBoxA'. And it doesn't produce any error message.
If I don't use 'MessageBoxA', the code creates the binary file.
I use gcc version 6.3.0 on Windows 10. Here's my code.
#include <stdio.h>#include <windows.h>int main() { printf("hello\n"); MessageBoxA( 0, "hello", "aa", 0); // If I subtract this line, it works fine. return 0;}
+) If there is xxx.exe
file that exists in current directory and I command the following command, the command removes the xxx.exe
file.
gcc myfile.c -o xxx.exe