Header's file and decorated name prototype

Started by ToutEnMasm, July 21, 2011, 02:27:14 PM

Previous topic - Next topic

ToutEnMasm

Hello,

You have a header file with defined prototypes like That.
LoadWaveFile PROTO C :DWORD ,:DWORD
The linker couldn't find those names.
Use dumpbin /ALL (c++ express) to generate a text file of the binary file with the proto.
You find that the proto have a decorated name like this.
LoadWaveFile@CWaves@@QAE?AW4WAVERESULT@@PBDPAH@Z.
A big work is to change all proto in the header by
?LoadWaveFile@CWaves@@QAE?AW4WAVERESULT@@PBDPAH@Z PROTO SysCall :DWORD ,:DWORD
LoadWaveFile TEXTEQU <?LoadWaveFile@CWaves@@QAE?AW4WAVERESULT@@PBDPAH@Z>

This tool made that
Give it:
  Full path of the header file
  Full path of dumpbin file      ;clic OK

Statool generate in his current directory a tool_...txt
with all the needed changes in the header.
He show you the file in the notepad.



ToutEnMasm


corrected a possible confusion bettween (for example):
appel_DeleteWaveFile and appel_Delete
Now the found decorated name is undecorate and the size of this new undecorated name is compare with the one searched.
Comparison is in binary format.
Confusions are now impossible.