The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => WINDOWS.INC Project => Topic started by: ToutEnMasm on June 09, 2009, 06:41:58 AM

Title: VC++ 2008 header's files translated
Post by: ToutEnMasm on June 09, 2009, 06:41:58 AM
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
Title: Re: VC++ 2008 header's files translated
Post by: UtillMasm on June 09, 2009, 06:48:40 AM
 :U
Move and Replace?event.sdk
Title: Re: VC++ 2008 header's files translated
Post by: ToutEnMasm on June 09, 2009, 08:14:07 AM

I don't understand very well what is your question ??.
Title: Re: VC++ 2008 header's files translated
Post by: feicong on June 26, 2009, 06:29:15 AM
  i don't know how to use it ? in the asm ?
Title: Re: VC++ 2008 header's files translated
Post by: ToutEnMasm on June 26, 2009, 12:05:18 PM
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]
Title: Re: VC++ 2008 header's files translated
Post by: mitchi on June 26, 2009, 12:58:27 PM
So we can use TCHAR-like programming in MASM now?
Title: Re: VC++ 2008 header's files translated
Post by: feicong on June 26, 2009, 01:44:09 PM
  it looks great!,thanks for all help .
Title: Re: VC++ 2008 header's files translated
Post by: ToutEnMasm on June 26, 2009, 02:24:36 PM

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.