<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Access to dll function (stdcall *)??]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a dll with a header file that defines quite a few functions, for example this (simple) one:</p>
<p dir="auto">extern const char* (__stdcall *PtRepsGetServerVersion)(void);</p>
<p dir="auto">Extern and the return type is clear, __stdcall in general is also, but what about the "*" that usually dereferences? What does it do in this definition context? And how can I execute this function?</p>
<p dir="auto">Thanks a lot,<br />
Stephan</p>
]]></description><link>https://forum.qt.io/topic/52349/access-to-dll-function-stdcall</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 11:06:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/52349.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Mar 2015 09:34:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Access to dll function (stdcall *)?? on Wed, 18 Mar 2015 13:15:43 GMT]]></title><description><![CDATA[<p dir="auto">Ok, about the reference I figured it out. Apparently it wasn't that difficult, so sorry for the dumb question. ;)</p>
<p dir="auto">But I still have trouble with the calling structure. I tried these:</p>
<p dir="auto">data2 = PtRepsGetClientDllVersion();</p>
<p dir="auto">data2 = (*PtRepsGetServerVersion)();</p>
<p dir="auto">The strange thing is not, that the application crashes, but that it does without execution of the above posted lines. These are in slots that are not called (yet). I could press a button, but the application crashes at STARTUP! Even it compiles now without complaints in that area.</p>
<p dir="auto">Any ideas?</p>
<p dir="auto">Stephan</p>
]]></description><link>https://forum.qt.io/post/265921</link><guid isPermaLink="true">https://forum.qt.io/post/265921</guid><dc:creator><![CDATA[StephanWoebbeking]]></dc:creator><pubDate>Wed, 18 Mar 2015 13:15:43 GMT</pubDate></item></channel></rss>