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:
Library Generator
Library Generator
Can you show some exemples?
Thaks
Thaks
Library Generator
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.
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.
Library Generator
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
* 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
Library Generator
Show me the pics of the generator than i can help to you other vise i say to sorry.....thanks