Library Generator

Here you can attach your files or example so others can use it, discussions needs to be done at the general board
Post Reply
magna
Posts: 30
Joined: Tue Nov 08, 2005 3:00 pm

Library Generator

Post: # 576Post magna
Fri Feb 05, 2010 11:25 pm

My first attempt to create a Library Generator for WINAPI functions is far from beeing complete but I like to share it nonetheless.
I still have difficulties to map some data types but I hope that somebody gives me a hand and leads me into the right direction to solve this problem.

I added a advapi32.h created from MSDN which you can use as a test case.

Here is my code so far:

cvirus
Posts: 88
Joined: Tue Jan 12, 2010 8:33 pm

Library Generator

Post: # 577Post cvirus
Sat Feb 06, 2010 7:26 pm

Can you show some exemples?

Thaks

magna
Posts: 30
Joined: Tue Nov 08, 2005 3:00 pm

Library Generator

Post: # 578Post magna
Sat Feb 06, 2010 9:53 pm

e.g.

LONG WINAPI RegDeleteKeyValue(
 __in      HKEY hKey,
 __in_opt  LPCTSTR lpSubKey,
 __in_opt  LPCTSTR lpValueName
);

from advapi32.dll translates to

DECLARE RegDeleteKeyValue AS "RegDeleteKeyValue" OF DLL_NAME
   hKey AS INTEGER BYADDRESS
   lpSubKey AS STRING BYADDRESS
   lpValueName AS STRING BYADDRESS
   RESULT AS LONG
END DECLARE

where DLL_NAME should be a constant which has to e declared as advapi32.dll.

magna
Posts: 30
Joined: Tue Nov 08, 2005 3:00 pm

Library Generator

Post: # 579Post magna
Fri Feb 12, 2010 6:21 am

Here is the version 2 with some improvements.

* maps all WINAPI data types to FNX-Basic datatypes
* library can be saved to file
* allows copy & paste of header and library
* allows to define if FNX-Basic keywords should be in lowercase, CamelCase or UPPERCASE
* FNX-Basic keywords are bold in the RichEdit

saqmo
Posts: 9
Joined: Sat Sep 15, 2012 4:13 pm

Library Generator

Post: # 580Post saqmo
Sat Sep 15, 2012 4:35 pm

Show me the pics of the generator than i can help to you other vise i say to sorry.....thanks

Post Reply