VC++ 2008 header's files translated

Started by ToutEnMasm, June 09, 2009, 06:41:58 AM

Previous topic - Next topic

ToutEnMasm

The windows SDK use header files that can be found only in the vc++.
You can simply put this include files in comment.It is not obligatory to have them.
In case of need here is the full set translated.There are not "ready to use".
A few corrections (masm limitations) can be needed.

http://pagesperso-orange.fr/luce.yves/Vc++header.ace

To use them you must include the translate.inc in FIRST
http://www.masm32.com/board/index.php?topic=11713.0

UtillMasm


ToutEnMasm


I don't understand very well what is your question ??.

feicong

  i don't know how to use it ? in the asm ?

ToutEnMasm

Quote
i don't know how to use it ? in the asm ?
You use them as include files.
PREFERED METHOD
You can insert them directly in the "ready to use sdk rc7", (Include   ...sdk)With windows.inc , put translate.inc first (a little file with some system constants)
;There is work to find macro ... defined in the windows.sdk
;but you can also copy cut some defines in your include source files
;there is work to find all the definitions needed in the windows.sdk
;but you can also copy cut definitions in your include source file
Quote
include windows.inc
include kernel32.inc
....
....
include translate.inc
include ....sdk                            ;Those who are not in the windows.sdk to avoid redefinition
;You can insert all the vc++ .sdk as this with windows.inc
By defaut,translate.inc think you have XP. (you can make a test as it is)
If you want to adapt it to your system ,follow this link
http://www.masm32.com/board/index.php?topic=11713.msg88281#msg88281

To avoid the couldn' t find this include file ,put the include in comment
all files can be used standalone or most of them
her is translate.inc to use them only with windows.inc


[attachment deleted by admin]

mitchi

So we can use TCHAR-like programming in MASM now?

feicong

  it looks great!,thanks for all help .

ToutEnMasm


Quote
So we can use TCHAR-like programming in MASM now?
For masm TCHAR is just a byte.The most common (for several files) are translated in the common standard variables of masm.
Difference between the c++ defines and the masm one:
The typedef in the c++ can be used by cl to write the correct address or value.Masm can't do that.
You are responsible to say to masm if you want to pass an argument by value or by adress.