Download Pelles C here: http://www.pellesc.se
Quote from: TimoVJL on June 30, 2026, 12:51:55 PMJust Enable Microsoft extensions to remove warningGood to know that, thanks for your help. The F1 help is great too, for anyone else new to Pelles C.
Quote...\MyDLL\pelles\pelles.c(3): warning #2203: Function 'my_function' can't be __stdcall, changed to __cdecl.Just Enable Microsoft extensions to remove warning
float __cdecl myfunc(float); // _myfuncorfloat __stdcall myfunc(float); // _myfunc@4Function sum Cdecl Alias "sum" (Byval x As Integer, Byval y As Integer) As Integer Export
Return(x+y)
End Function
Function subs Cdecl Alias "subs" (Byval x As Integer, Byval y As Integer) As Integer Export
Return(x-y)
End Function
#include <stdio.h>
extern int __cdecl sum(int x,int y);
extern int __cdecl subs(int x,int y);
int main(void)
{
printf("70 + 30 = %d\n",sum(70,30));
printf("70 - 30 = %d",subs(70,30));
return 0;
}
Page created in 0.039 seconds with 15 queries.