david.nguyen wrote: > i use winegcc to complie main.c and link to lib: > winegcc main.c -o main -L. -lSimple.dll Not correct. See this topic: http://forum.winehq.org/viewtopic.php?t=3177 Also double check calling conventions. Keep in mind default is cedecl not stdcall aka WINAPI.