2010-01-13から1日間の記事一覧

WindowsでgccでDLL作成

メモ。LoadLibraryの説明するのにちょっと調べて書いてた。 ツッコミはいらぬ。 foo.c #include<windows.h> #include<stdio.h> __declspec(dllexport) __stdcall int MessageBoxA(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType) { printf(lpText); return 0; } test</stdio.h></windows.h>…