2010-08-10から1日間の記事一覧
ちょいとはまった。typedef void(__stdcall *DllFunc)(int n); 呼び出される関数の呼び出し規約に従わないと落ちるんだ。//exe gcc -g -std=c++0x -Wall test.cpp -o test.exe -lstdc++ #include <windows.h> #include <iostream> int main() { HMODULE hmod = LoadLibrary("test.</iostream></windows.h>…