Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Access to dll function (stdcall *)??
Forum Updated to NodeBB v4.3 + New Features

Access to dll function (stdcall *)??

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 528 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    StephanWoebbeking
    wrote on last edited by
    #1

    Hi,

    I have a dll with a header file that defines quite a few functions, for example this (simple) one:

    extern const char* (__stdcall *PtRepsGetServerVersion)(void);

    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?

    Thanks a lot,
    Stephan

    1 Reply Last reply
    0
    • S Offline
      S Offline
      StephanWoebbeking
      wrote on last edited by
      #2

      Ok, about the reference I figured it out. Apparently it wasn't that difficult, so sorry for the dumb question. ;)

      But I still have trouble with the calling structure. I tried these:

      data2 = PtRepsGetClientDllVersion();

      data2 = (*PtRepsGetServerVersion)();

      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.

      Any ideas?

      Stephan

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved