Pelles C forum

Pelles C => General discussions => Topic started by: uzidengineer on February 16, 2011, 05:38:45 PM

Title: DLL wizard in Pelles C - EXPORT section
Post by: uzidengineer on February 16, 2011, 05:38:45 PM
Hi,

I was able to use, successfully, the wizaed
to create a simple (one function) .DLL.
I just replaced the Wizard's function with mine.

What if I nwould like more than on function -
- do I use the @8 on both?
Why @8 (and not @1)?
Can it be changed?

Thanks,
Uzi,
2/16/2011

Title: Re: DLL wizard in Pelles C - EXPORT section
Post by: TimoVJL on February 16, 2011, 06:05:39 PM
QuoteWhy @8 (and not @1)?
That depends functions parameters when using __stdcall calling convention.

"MyExportFunction"=_SampleFunction@8

int WINAPI SampleFunction(int, int);

two parameters => @8