The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: UPucker on September 24, 2005, 11:20:55 AM

Title: Whats the difference between DialogBoxParam and DialogBoxParamA
Post by: UPucker on September 24, 2005, 11:20:55 AM
Looked around and kind find any explanations.

Title: Re: Whats the difference between DialogBoxParam and DialogBoxParamA
Post by: AeroASM on September 24, 2005, 03:08:34 PM
Any API which takes a string as an argument has two versions: unicode (W) and ascii (A). eg MessageBoxA and MessageBoxW. MASM and most C compilers automatically append an A if you do not specify, so under MASM DIalogBOxParam and DialogBoxParamA are equivalent.
Title: Re: Whats the difference between DialogBoxParam and DialogBoxParamA
Post by: MichaelW on September 24, 2005, 06:26:51 PM
Also some functions that take individual characters as arguments (e.g. GetCharWidth32 (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_5cz6.asp)), or that take a string as part of a structure argument (e.g. EnumFontFamiliesEx (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_4mk8.asp)), are implemented in ANSI and Unicode versions.

Title: Re: Whats the difference between DialogBoxParam and DialogBoxParamA
Post by: UPucker on September 25, 2005, 12:00:32 AM
Thanks for the info.

Learning more every day.

Title: Re: Whats the difference between DialogBoxParam and DialogBoxParamA
Post by: tenkey on September 25, 2005, 04:07:00 AM
Also note that the compilers and assemblers don't know which functions have dual forms.

The translation to the A and W versions happens in the "include" files.