VisualStudioは無いけれど、簡単なWindowsプログラムを作成したい場合に
MinGWを使って簡易的な確認を行ってみました。
#include <windows.h> int MingW_CALL() { MessageBox (NULL, "Compile test on Mingw", "Windows Compile", MB_OK); return 0; }
anywhere@any-place ~
$ vim windows-test.canywhere@any-place ~
$ gcc -c windows-test.canywhere@any-place ~
$ gcc -shared -o windows-test.dll windows-test.oanywhere@any-place ~
$ rundll32.exe windows-test.dll MingW_CALLanywhere@any-place ~
$
関連リンク
minttyインストール
参考サイト
MSYSとMingWでwin32のDLLをつくる