Whats the difference between DialogBoxParam and DialogBoxParamA

Started by UPucker, September 24, 2005, 11:20:55 AM

Previous topic - Next topic

UPucker


AeroASM

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.

MichaelW

Also some functions that take individual characters as arguments (e.g. GetCharWidth32), or that take a string as part of a structure argument (e.g. EnumFontFamiliesEx), are implemented in ANSI and Unicode versions.

eschew obfuscation

UPucker


tenkey

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.
A programming language is low level when its programs require attention to the irrelevant.
Alan Perlis, Epigram #8