Sunday, July 15, 2007

looking inside library (.lib) file

If you want to see what functions are exported by a library use:
dumpbin.exe which comes with visual studio.
e.g.
dumpbin /symbols /exports kernel32.lib

it is particularly useful when you get link errors. I made the mistake of calling a stdcall function with cdecl convention and got linker error for unknown symbol. When I looked inside the library, I realized the error.

No comments: