views:

325

answers:

2

Hi, I have a dynamic library compiled with visual studio. (so 4 files: Library.dll, Library.lib, Library.def and Library.exp)

This dll contains exported classes and functions.

Is there a way to obtain C/C++ header files (.h) with these files?

+1  A: 

I disagree with Eugene, unless you're dealing with name mangled C++ calling convention -- and I'm not sure how easy it is in that case. Chances are the exports are stdcall, which gives you the number of bytes in the param list but not the types. What's 12? Two ints and a pointer to float? Twelve chars? Ugly. If it's CDECL, you don't even get that. You might try doing dumpbin /all on the dll or dumbin /exports, though the latter will probably reflect what's in the def file.

John Lockwood
A: 

First question is, who did you get it from and would it be possible to ask them for a header file? And for a documentation, because otherwise the use case for such library is a bit shaky :)

Ashalynd