On 21.09.2009 17:11, A Bothe wrote: > I solved the problem! > > I've to make the function pointer to be extern(C), > so I will have > > extern(C) > { > int function(...) tfunc; > } MessageBoxA is definitely stdcall, so extern (Windows) is correct. So the problem has to be something else.