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. How to create implib for c stdcall? .def file how to use?
QtWS25 Last Chance

How to create implib for c stdcall? .def file how to use?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 746 Views
  • 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.
  • C Offline
    C Offline
    changtj
    wrote on last edited by changtj
    #1

    pro file is

    //your code here
    QT       += widgets network xml
    
    TARGET = qtftpwin
    TEMPLATE = lib
    

    makefile.debug file is

    //your code here
    LFLAGS        =        -shared -Wl,-subsystem,windows -mthreads -Wl,--out-implib,debug\libqtftpwin.a
    

    how can i get c stdcall implib libqtftpwin.lib?

    .def file how to use?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you show your code ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Can you show your code ?

        C Offline
        C Offline
        changtj
        wrote on last edited by
        #3

        @SGaist

        you can create one example project.

        add one function declare.
        extern "C" __declspec(dllexport) void my func(char*)
        define it
        extern "C" __declspec(dllexport) void myfunc(char*)
        {
        }
        build it, then dump it with pe tool.

        myfunc in dll file is

        myfunc@4

        how can get myfunc?

        because using it vs c++ and c# project, normally using it without param.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          See the Creating Shared Libraries chapter in Qt's documentation.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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