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

LiaoMi

  • Member
  • ****
  • Posts: 875
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #45 on: May 27, 2021, 06:10:46 PM »
Hello,
I made an oversight in the 10.6 version,corrected in the 10.7
I have also eliminates the risk with annotations in structures.

Hi TouEnMasm,

we will test it, thanks for your work  :thumbsup:

P.S.
Did you check knownfolders.h?
http://masm32.com/board/index.php?topic=9282.0

TouEnMasm

  • Member
  • *****
  • Posts: 1683
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #46 on: May 28, 2021, 02:01:41 AM »

Thanks for your help,I have made a last change in the code ,The typedef multi-dimensionnal are now translated as strucrure and usable by MASM.
Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1683
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #47 on: May 28, 2021, 11:40:37 PM »
 :greensml:
I hope last change this time,Some structures wasn't recognize as there.Corrected.
Corrected thread problem,some files wasn't translate (list of files).
A very few number of files don't want to be translated in a list (threaded) and can be only translated as individual.
Those are
Quote
H:\Program Files\editmasm\ref\outils\translator\windows.phone.restricted.cellular.rcspresence.h
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\abi\windows.phone.restricted.cellular.videotelephony.h
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\ndis\version.h
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\km\hbapiwmi.h
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\km\iscsidef.h
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\km\iscsiop.h
I don't know for what on 2000 files those ones don't want to be translate in a thread.


Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1683
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #48 on: May 31, 2021, 11:55:00 PM »
Hello,
Hope was lost but not the result.
This one:
Filter the MIDL_PASS Lines
Filter the VC++ structures and made a report in the journal.txt.
Solve the thread problem (Not enough memory)
                                         Three files are still resisting to the translation (group files mod,list) ,they are in asm (kxarm..).
Must stay the usual errors to correct.
* Constants not declared        (version number ,you can use an equate with the first term of the comparison GE)
* redefinitions of symbols  name = aname ....conflicting definitions

Tested on the whole sdk 10.0.19041.0 http://luce.yves.pagesperso-orange.fr/header.htm
Don't be afraid by the needed corrections,one ; to put definitions in comment is very usefull.
Chance is also possible,It's it work at the first time,It's not me but the chance.


« Last Edit: June 03, 2021, 10:55:15 PM by TouEnMasm »
Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1683
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #49 on: June 17, 2021, 07:22:30 PM »
Hello,
The c++ use complex rules to give a size at the structures with bitfields ,record for masm.
light explain  are here https://docs.microsoft.com/en-us/cpp/cpp/cpp-bit-fields?view=msvc-160
The 11.3 version of headinc give the correct size for those structures.
http://luce.yves.pagesperso-orange.fr/header.htm
Fa is a musical note to play with CL

LiaoMi

  • Member
  • ****
  • Posts: 875
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #50 on: June 18, 2021, 06:15:34 AM »
Hello,
The c++ use complex rules to give a size at the structures with bitfields ,record for masm.
light explain  are here https://docs.microsoft.com/en-us/cpp/cpp/cpp-bit-fields?view=msvc-160
The 11.3 version of headinc give the correct size for those structures.
http://luce.yves.pagesperso-orange.fr/header.htm

Hi TouEnMasm,

http://luce.yves.pagesperso-orange.fr/editmasm.zip

La page que vous demandez est introuvable.
Mais il y a des solutions :

vérifiez l’adresse de la page
précisez-nous votre demande
Vous avez aussi la possibilité de retourner en page d’accueil.

TouEnMasm

  • Member
  • *****
  • Posts: 1683
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #51 on: June 18, 2021, 03:23:34 PM »
Mistake of mine,corrected.
The compressed file can be a zip or a 7z (for various reasons)
Better is to connect to the page http://luce.yves.pagesperso-orange.fr/Editmasm.htm

Fa is a musical note to play with CL

LiaoMi

  • Member
  • ****
  • Posts: 875
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #52 on: June 18, 2021, 07:02:56 PM »
Mistake of mine,corrected.
The compressed file can be a zip or a 7z (for various reasons)
Better is to connect to the page http://luce.yves.pagesperso-orange.fr/Editmasm.htm

The link does not work in any conditions  :sad:

TouEnMasm

  • Member
  • *****
  • Posts: 1683
    • EditMasm
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #53 on: June 18, 2021, 11:22:49 PM »
Direct links http://luce.yves.pagesperso-orange.fr/editmasm.7z
 http://luce.yves.pagesperso-orange.fr/translatorus.zip

I verify if the links works and modify this post if necessary.

The two links works for me,perhaps problem is elsewhere ?
Second tests ,same results ?!!.
Fa is a musical note to play with CL

HSE

  • Member
  • *****
  • Posts: 1706
  • <AMD>< 7-32>
Re: A translator for sdk header files (64 and 32 bits translate)
« Reply #54 on: June 18, 2021, 11:49:02 PM »
Just in case, is working  :thumbsup: