<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>20 Apr 2015 09:24:00 Z</lastBuildDate><pubDate>16 Apr 2015 16:04:00 Z</pubDate><description>Hello,&#13;
&#13;
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&#13;
&#13;
value = API("&lt;LIB_NAME", "API_NAME", &amp;callback)&#13;
&#13;
where callback is my global procedure. Based on a particular event my library will do a call back. Now I am getting the callback after the event, but the application is getting crashed after this. Below is the error I am getting&#13;
"Run - Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declaredwith a different calling convention."&#13;
&#13;
As the error says it is parameter mismatch. but in my case just see below:&#13;
&#13;
1. Callback declaration in Library : int (*Notification_CB_t) ( int type, int a, int b, int test);&#13;
2. One of API call: value = API("&lt;LIB_NAME", "API_NAME", &amp;callback)&#13;
3. Callback procedure definition : PROCEDURE callback(Type is int,DataInfo is int, TagInfo is int, local_status is int)&#13;
&#13;
Any help is appreciated since I am new to WinDev</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function/read.awp</link><title>Using a DLL which requires a callback to a function</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-solved-using-dll-which-requires-callback-function-51644/read.awp</comments><pubDate>20 Apr 2015 09:24:00 Z</pubDate><description>Done.&#13;
&#13;
Thanks :)</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-solved-using-dll-which-requires-callback-function-51644/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-solved-using-dll-which-requires-callback-function-51644/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function/read.awp">Using a DLL which requires a callback to a function</source><title>Re: [SOLVED] Using a DLL which requires a callback to a function</title></item><item><author>ok2bwell</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51597/read.awp</comments><pubDate>17 Apr 2015 19:11:57 Z</pubDate><description>I hope this helps Must use [SDECL] &#13;
&#13;
FUNCTION DiskRead SDECL ALIAS "DiskRead"(BYVAL hDisk AS DWORD, BYVAL pBlockIndex AS QUAD …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51597/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51597/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function/read.awp">Using a DLL which requires a callback to a function</source><title>Re: Using a DLL which requires a callback to a function</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51590/read.awp</comments><pubDate>17 Apr 2015 15:49:00 Z</pubDate><description>Hi Naveen,&#13;
&#13;
When you click "Reply" you can change the subject line. Add [SOLVED] if you want!&#13;
&#13;
Best regards,&#13;
Alexandre Lecl…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51590/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51590/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function/read.awp">Using a DLL which requires a callback to a function</source><title>Re: Using a DLL which requires a callback to a function</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51584/read.awp</comments><pubDate>17 Apr 2015 12:25:00 Z</pubDate><description>Hi Alexandre,&#13;
&#13;
Thaks for the reply. It workd after I mentioned (--stdcall) in my library for the callback decalration. Is ther…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51584/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51584/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function/read.awp">Using a DLL which requires a callback to a function</source><title>Re: Using a DLL which requires a callback to a function</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51568/read.awp</comments><pubDate>16 Apr 2015 17:51:00 Z</pubDate><description>Hi Naveen,&#13;
&#13;
Alors check which calling convention you are using in your DLL. By default in WinDev uses SDTCALL. You must inform…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51568/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51568/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function/read.awp">Using a DLL which requires a callback to a function</source><title>Re: Using a DLL which requires a callback to a function</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51567/read.awp</comments><pubDate>16 Apr 2015 16:18:00 Z</pubDate><description>Hi&#13;
&#13;
in your callback function, try declaring your parameters as system int instead&#13;
&#13;
Best regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51567/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function-51567/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51566-using-dll-which-requires-callback-function/read.awp">Using a DLL which requires a callback to a function</source><title>Re: Using a DLL which requires a callback to a function</title></item></channel></rss>
