Author Topic: A translator for sdk header files (64 and 32 bits translate)  (Read 21780 times)

LiaoMi

  • Member
  • ****
  • Posts: 697
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #30 on: July 03, 2020, 03:52:28 AM »
Final version is here in english(US)
http://luce.yves.pagesperso-orange.fr/header.htm
The headinc link give you the translator,The SDK10.0 pack give you SDK headers translated and usable immediately.
You can translate the page in further languages with the button at the lefft.
The headers support 64/32 bits,unicode .. and give you the same alignment as the C headers (This avoid many problems).
You can also use Windows switchs (constants) to adapt the headers at your machine.
The more common headers can be used without changes (they are numerous),others need minor modifies to make the compilator happy.

Hi TouEnMasm,

http://masm32.com/board/index.php?topic=8126.msg89196#msg89196
and
http://masm32.com/board/index.php?topic=8126.msg89199#msg89199

TouEnMasm

  • Member
  • *****
  • Posts: 1282
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #31 on: July 03, 2020, 03:25:07 PM »

I see than you speak about Size_T  and about PTR ,have you  a modify to ask ?
Fa is a musical note to play with CL

LiaoMi

  • Member
  • ****
  • Posts: 697
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #32 on: July 05, 2020, 05:28:32 PM »

I see than you speak about Size_T  and about PTR ,have you  a modify to ask ?

Hi TouEnMasm,

your constant is defined as
SIZE_T = DWORD ; intsafe.h

but should be SIZE_T =XMASM ; intsafe.h

there are a lot of such places in the SDK, manual correction in this case is not possible. And a question from the past, are you going to publish the source code of your converter?

TouEnMasm

  • Member
  • *****
  • Posts: 1282
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #33 on: July 06, 2020, 03:03:43 AM »

Not an error of the translator,must be the include who have changed.
he is defined in basetsd SDK\10.0.19041.0\shared show:

Quote
typedef ULONG_PTR SIZE_T, *PSIZE_T;
typedef LONG_PTR SSIZE_T, *PSSIZE_T;
translated by headinc in :
Quote
SIZE_T TYPEDEF XMASM
PSIZE_T TYPEDEF XMASM
SSIZE_T TYPEDEF XMASM
PSSIZE_T TYPEDEF XMASM

I will correct this one manually.If you find another like that,verify that the translator give not an another translate and post it here.






Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1282
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #34 on: July 23, 2020, 02:09:44 AM »
Hello,
The upper needed modifie has been done in the file basetsd.sdk.
I have had bad surprise using COM in 64 bits and this as needed modifies:
riid:DWORD begin riid:XMASM
rclsid:DWORD begin rclsid:XMASM           and those in all the sdk files.
The corresponding changes (REFIID,..,REF..) had been also made in egales.txt used by the translatorus.
There was trouble with COM in 64 bits,32 is not affect by the change
If you have problem's  don't hesitate to post it here.
I will do my best to arrange this






Fa is a musical note to play with CL