Re: exporting classes from DLL using def file and NONAME
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Sun, 16 Mar 2008 22:08:22 -0700
(2b|!2b)==? wrote:
I am exporting classes and functions from a DLL, using a DEF file and
NONAME. I am obtaining the mangled or 'decorated' names by running
dumpbin on the generated DLL.
My assumption regarding the names in my DEF file are the following:
1). The exported names will not change so long as I use the same
compiler to generate the DLL each time
True. Actually, VC++ name decoration has been very stable since V1.0,
although minor changes (mostly additions) have occurred.
2). The exported name for a method will not change so long as its
signature does not change - EVEN if the signature of other methods of
the same class change
True.
3). The exported name for a method will not change so long as its
signature does not change - EVEN if NEW methods are ADDED to the class
interface
True.
4). The exported name for a method will not change so long as its
signature does not change - EVEN if EXISTING methods are REMOVED from
the class interface
True.
5). The exported name for a method will not change so long as its
signature does not change - EVEN if new fields are added/removed to
the class
True.
6). The exported name for a method will not change so long as its
signature does not change - EVEN if new methods are added to the
library that contains the class
True.
The reasons I ask these questions is that I intend to obtain the
current 'decorated names' and assigh ordinal numbers to them and
export the classes that way. Going forward,I envisage adding new
methods etc to existing classes, and I need to know enough about what
happens underneath the hood, so I may develop an effective stratgey
regarding backward compatability with clients that consume my library
A bit of a pain, but it should work as you envision it.
-cd
.
- Follow-Ups:
- Re: exporting classes from DLL using def file and NONAME
- From: Ben Voigt [C++ MVP]
- Re: exporting classes from DLL using def file and NONAME
- From: (2b|!2b)==?
- Re: exporting classes from DLL using def file and NONAME
- References:
- exporting classes from DLL using def file and NONAME
- From: (2b|!2b)==?
- exporting classes from DLL using def file and NONAME
- Prev by Date: Re: precondition and post condition check
- Next by Date: Re: call base class function or derived class function
- Previous by thread: exporting classes from DLL using def file and NONAME
- Next by thread: Re: exporting classes from DLL using def file and NONAME
- Index(es):
Relevant Pages
|