Using a DLL which requires a callback to a function

Startbeitrag von naveen.ratan am 16.04.2015 14:04

Hello,

I have a library which i wrote using C. Now, I am trying integrate this library in to Windev windows application which I a creating, and i'm facing a serious problem. Below is API call I am doing

value = API("

Antworten:

Hi

in your callback function, try declaring your parameters as system int instead

Best regards

von Fabrice Harari - am 16.04.2015 14:18
Hi Naveen,

Alors check which calling convention you are using in your DLL. By default in WinDev uses SDTCALL. You must inform WinDev if this is CDECL (or THISCALL) in your callback function.

For example:

PROCEDURE MyCallback(n is sys int)

(Yes, this is French and there is no English version of it; this will work).

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 16.04.2015 15:51
Hi Alexandre,

Thaks for the reply. It workd after I mentioned (--stdcall) in my library for the callback decalration. Is there any provision to keeo the status as SOLVED for my post?

Thanks,
Naveen Rathan

von naveen.ratan - am 17.04.2015 10:25
Hi Naveen,

When you click "Reply" you can change the subject line. Add [SOLVED] if you want!

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 17.04.2015 13:49

Re: [SOLVED] Using a DLL which requires a callback to a function

Done.

Thanks :)

von naveen.ratan - am 20.04.2015 07:24
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.