Author Topic: A translator for sdk header files  (Read 1549 times)

ToutEnMasm

  • Member
  • ***
  • Posts: 366
    • View Profile
    • EditMasm
A translator for sdk header files
« on: August 15, 2012, 04:16:27 AM »
Hello,
The translation work now exactly as the original.
many details have been changed for the 7.1 translate.
Alignment is the same as c++,64 bits ,unicode and ++.
At the instant only the windows sdk translate had all this.
Other sdk need a modify of there text files.

Usage:read the readme.rtf file in the zip.

This version has been tested on all the SDK 7.1,winddk and directx header files .
The translator is at an end in his writing.The translated files can be used now without windows.inc.
just include translate.inc , before windows.sdk.
All Prototypes (API and interface) used the standard notation of masm .You have just to follow the SDK help files,usage is the same.

The translation need a very few changes to use what is translate.UNICODE is supported.
Are translated,constants,structures,enums,Interfaces ,prototypes and the most common GUID.A comment (;API) is added before the prototypes to find them quickly(all prototypes are not API).The readme file in the zip say you more.
The translation is in the same maners as windows.inc,a few number of typedef are used.
This grant you the more simple syntax as possible ,and none hard search .
For win64 compilers,see egales.txt  and reverse the _w64 and win64 order.
***************************************************************
This version have made the windows.sdk downloadable on my site
Problem at link solved,Some prototypes have the same name in interfaces and/or are duplicate.
This provide a "error LNK2001: unresolved external symbol"
The title INTERFACE_API_CONFLIT_NOM added in egales.txt is here to solve this
All is ready to translate the ddk or the directx sdk

***************************************************************
Before translate anything,have a look at the full set of SDK header files translated
http://masm32.com/board/index.php?topic=563.0
VC++ 2008 header's file translated ( CRT )
http://masm32.com/board/index.php?topic=573.0
=========================================== 

////////////////////////////////// C++ library //////////////////////////////////////////
The defaut prototype is C for the header of the C++,it's not like that in the SDK.
So you have to manually (use an editor) to change:
PROTO ------> PROTO C
You can also have functions with a decorated name in the library.
Use this tool:
http://masm32.com/board/index.php?topic=580.msg4701#msg4701

===================== Dynamic load of functions ============
Some functions could be only used by dynamic load of the dll.
It's the case for the opengl extensions.
In other cases,you haven't the lib or this one change too often.
A dynamic load is also an answer in this cases.
Use this tool:
http://masm32.com/board/index.php?topic=581.msg4705#msg4705
« Last Edit: March 18, 2013, 05:26:32 PM by ToutEnMasm »
Fa is a musical note to play with CL

Gunther

  • Member
  • *****
  • Posts: 1020
  • Forgive your enemies, but never forget their names
    • View Profile
Re: A translator for sdk header files
« Reply #1 on: August 15, 2012, 05:14:31 AM »
Hi ToutEnMasm,

well done  :t

Gunther

Siekmanski

  • Member
  • **
  • Posts: 65
    • View Profile
Re: A translator for sdk header files
« Reply #2 on: August 15, 2012, 06:41:26 PM »
Unfortunately I can't download the file "http://luce.yves.pagesperso-orange.fr/sdkrc7.cab"
Connection to the server is broken when starting downloading or at 99% of the download.
Now and then I try to download it again but no succes.   :(

ToutEnMasm

  • Member
  • ***
  • Posts: 366
    • View Profile
    • EditMasm
Re: A translator for sdk header files
« Reply #3 on: August 16, 2012, 12:12:31 AM »

Quote
Unfortunately I can't download the file "http://luce.yves.pagesperso-orange.fr/sdkrc7.cab"
it seems there is some problems with my internet provider.I have also some problems to connect my site.
Try later...
Fa is a musical note to play with CL

jj2007

  • Member
  • *****
  • Posts: 1722
    • View Profile
    • MasmBasic
Re: A translator for sdk header files
« Reply #4 on: August 16, 2012, 01:00:06 AM »
If it wasn't 17 MB, I'd post it here... ::)

ToutEnMasm

  • Member
  • ***
  • Posts: 366
    • View Profile
    • EditMasm
Re: A translator for sdk header files
« Reply #5 on: September 16, 2012, 03:08:02 AM »
Hello,
I have posted a new version of the translator.

The translation will give you the same advantages as the windows sdk.
Alignment is the same as c++,64 bits ,unicode and ++.
At the instant only the windows sdk had all this.
Other need a modify of there text files.

I have no way to test the 64 bits usage.
Reports on it's use will be usefull.




Fa is a musical note to play with CL

ToutEnMasm

  • Member
  • ***
  • Posts: 366
    • View Profile
    • EditMasm
Re: A translator for sdk header files
« Reply #6 on: September 17, 2012, 06:47:53 AM »
 :icon_mrgreen:
I had forgotten to write the 32_64 values in the prototypes.
Mistake corrected.
Fa is a musical note to play with CL

ToutEnMasm

  • Member
  • ***
  • Posts: 366
    • View Profile
    • EditMasm
Re: A translator for sdk header files
« Reply #7 on: September 22, 2012, 04:47:30 AM »

New version posted had made the "ready to use sdk 7.1" working exactly as the original windows sdk.
Fa is a musical note to play with CL

vertograd

  • Member
  • **
  • Posts: 54
  • Gone with the WinDbg
    • View Profile
Re: A translator for sdk header files
« Reply #8 on: March 16, 2013, 03:43:24 AM »
Hello ToutEnMasm!

Thank you for reply and link to your post. I've already downloaded headinc.zip . I'll try it.
I'm making my first steps in MASM and it's important for me to understand how to translate C++ headers to MASM includes.

vertograd

  • Member
  • **
  • Posts: 54
  • Gone with the WinDbg
    • View Profile
Re: A translator for sdk header files
« Reply #9 on: March 19, 2013, 05:07:49 AM »
I've just translated several headers. Your utility is very easy to use and fast. But dbgeng.h has two dependencies which in turn have their own ones and so on ... so I've downloaded your sdkrc7 .cab (without any problems)
Thanks!

Magnum

  • Member
  • *****
  • Posts: 1022
    • View Profile
Re: A translator for sdk header files
« Reply #10 on: March 19, 2013, 05:50:45 AM »
I do not understand how these are used.

Thanks,
              Andy