delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/28/06:10:15

From: Bernd DOT Schilpp AT brokat DOT de (Bernd Schilpp)
Subject: exporting/importing classes in MSVC++ - DLLs
28 Nov 1997 06:10:15 -0800 :
Message-ID: <347E9198.7FB2D74B.cygnus.gnu-win32@brokat.de>
Reply-To: Bernd DOT Schilpp AT brokat DOT de
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

hello everybody,

I know, that this is not the right place to ask about MSVC++ - things -
but here are a lot of
experienced and qualified  people and perhaps somebody knows an answer
to my question.

I have an application with some DLLs.
I use classes wildly that are implemented in these DLLs.
Normally I would have to do a lot of #define #ifdef - statements to
check in which DLL or executable
I am in and if I have to import or export the class in my inlcude-file.

But I would like to export and import each class in anyway.
It would look like this.

class __declspec(dllexport) __declspec(dllimport) Dummy
{
.....
}

It`s possible to do this with a macro-definition as well.

My litte testapplications with 2 DLLs are working without any problem.
(I am using a #pragma to supress the warnings)


Does anybody know, if this method would lead to problems ?

thanks,
Bernd

-
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