The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: hutch-- on January 23, 2006, 05:45:28 AM

Title: XP Library and include file update.
Post by: hutch-- on January 23, 2006, 05:45:28 AM
Now that Pelle has tweaked POASM to handle the masm form of ECHO, I have added the duplicate guards in all of the include files so that a duplicate include file will display a warning and I have set both the library construction and the include file generation in the same batch file MAKEIT.BAT.

I have added advice at the end of the batch file for anyone using one of the more recent versions of WINDOWS.INC with MASM. Comment out the prototype for "wsprintfA" near the start of the file as it is now built directly from the DEF file and will generate an error if its left there.

This setup seems to be testing up OK and the include files are designed for both POASM and MASM.

[attachment deleted by admin]
Title: Re: XP Library and include file update.
Post by: Vortex on January 23, 2006, 07:04:09 PM
Hi Hutch,

It looks fine, nice job :U

I know maybe it's not so important to mention but gapi32.def contains some funny duplicate function names :
LIBRARY gapi32
EXPORTS
"_1976@20"
"_1976@24"
"_1978@20"
"_1978@24"
"_1980@20"
"_1980@24"
"_1983@20"
"_1983@24"
"_1987@20"
"_1987@24"
"_1990@20"
"_1990@24"
"_1@20"
"_1@24"
"_7@20"
"_7@24"
.
.
"_JIS@20"
"_JIS@24"
.
.
"_NEC@20"
"_NEC@24"


Why a DLL should export the same function names with different number of passed parameters?
Title: Re: XP Library and include file update.
Post by: zooba on January 24, 2006, 01:47:51 AM
Quote from: Vortex on January 23, 2006, 07:04:09 PM
Why a DLL should export the same function names with different number of passed parameters?

Overloaded functions :U
Title: Re: XP Library and include file update.
Post by: Vortex on January 24, 2006, 06:19:33 AM
Hi zooba,

Yes, you are right. It's a C++ feature, thanks for the info.