delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/05/16:32:30

From: jon AT campbellsci DOT com (Jon Trauntvein)
Subject: How to import DLL functions?
5 Nov 1997 16:32:30 -0800 :
Message-ID: <01bcea1c$a91c4f80$2202a8c0.cygnus.gnu-win32@jon_trauntvein>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

I am trying to build an application using g++ that calls functions from a
DLL generated with Visual C++.  I have tried using the following type of
declaration only to have the compiler complain about the syntax:

   void __declspec(dllimport) __stdcall foo();

After scanning through the Microsoft documentation, I have learned that the
dllimport spec is a Microsoft specific extension. The question that I have
is, what is the appropriate extension to use with the GNU compiler?

Regards,

Jon Trauntvein

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019