The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => Miscellaneous Projects => Windows Projects => Topic started by: ToutEnMasm on July 21, 2011, 02:27:14 PM

Title: Header's file and decorated name prototype
Post by: ToutEnMasm on July 21, 2011, 02:27:14 PM
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.


Title: Re: Header's file and decorated name prototype
Post by: ToutEnMasm on July 25, 2011, 06:55:17 AM

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.