On Fri, May 23, 2008 at 9:24 PM, Thomas Hruska <[EMAIL PROTECTED]> wrote:

> The de facto standard tool is called Dependency Walker (aka Depends -
> not the undergarment).
>
> http://www.dependencywalker.com/
>
> That tool ships with VS.  Or at least it used to.  Regardless, the
> latest version resides there at all times.

OK, I guess that doesn't come with VC++ Express... anyway, I found
another tool called PEBrowse which does a similar thing. I was right,
no symbols were exported.

> The DEF file should contain an EXPORTS section, which lists all the
> functions you want to export (case-sensitive).  It is fairly easy to put
> together - one function name per line.  The #1 thing people forget to do
> is to make sure the linker knows about the DEF file.  Simply adding it
> to the project is not enough.  You have to edit the project settings and
> wander around the linker section.

Yep, I had all that in place but it didn't do what I wanted. I created
a new one from scratch and configured it with the functions I wanted
to export, and then got a bunch of link errors. *grumble* I abandoned
the .def file and added /EXPORT:<function> to my linker options for
all of the functions I wanted to export and then everything worked.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
 If I were to divulge it, it would overturn the world."
 -- Jelaleddin Rumi

Reply via email to