Re: Forcing A Symbol Into A DLL
From: Jim Beveridge (jimb_at_connectedswDOTcom)
Date: 06/16/04
- Next message: Jacky Luk: "Re: About Decorated Names"
- Previous message: Rob Bolton: "Basic security question"
- In reply to: Robert A Riedel: "Forcing A Symbol Into A DLL"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 14:30:34 -0700
Bob,
Use "Dumpbin /all somefile.lib >sym.txt" to create a text file of all
symbols, search for the symbol of interest with a text editor, and you'll
see the decorated name.
On my machine, Dumpbin is in C:\Program Files\Microsoft Visual
Studio\VC98\Bin
In VC6, you can embed the link parameter in one of your source files, like
this:
#pragma comment(linker, "/include:?SomeSymbol@@3_NA")
Note that the question mark is actually part of the decorated name.
Regards,
Jim Beveridge
"Robert A Riedel" <rariedelmsdn@beckman.com> wrote in message
news:Oni4rZ9UEHA.1152@TK2MSFTNGP09.phx.gbl...
> While building a DLL, I need to force a symbol defined in a static library
> into the linked image presumably using the link option /INCLUDE:symbolname
> briefly explained in the MS documentation, however, true to the typical MS
> documentation, no examples are provided that demonstrate how such a symbol
> name should be constructed, and nothing I have tried works.
>
> Can someone explain how a valid symbol name is constructed from C++
function
> names in a library that link will accept?
- Next message: Jacky Luk: "Re: About Decorated Names"
- Previous message: Rob Bolton: "Basic security question"
- In reply to: Robert A Riedel: "Forcing A Symbol Into A DLL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|