Project options Verbose build show commandlines.
A small example:
//test.c
//__declspec(dllexport) int __stdcall sum(int a, int b) {
__declspec(dllexport) int __cdecl sum(int a, int b) {
return a + b;
}
SET PellesCDir="C:\Program Files\PellesC"
SET Path=%PellesCDir%\bin
SET INCLUDE=%PellesCDir%\include
SET LIB=%PellesCDir%\lib;%PellesCDir%\lib\Win
pocc -Gd -Ze test.c
polink -dll test.obj
pause
-Gd create __cdecl exports
-Gz create __stdcall exports and with -Gn undecorated __stdcall functions
Python test.py
#test.py
import ctypes
#mydll = ctypes.WinDLL("test") # load the dll __stdcall
mydll = ctypes.CDLL("test") # load the dll __cdecl
mydll.sum.argtypes = (ctypes.c_int, ctypes.c_int)
print(mydll.sum(5, 3))