Pelles C forum

C language => Work in progress => Topic started by: TimoVJL on April 18, 2025, 09:55:51 AM

Title: Testing XmlLite.dll
Post by: TimoVJL on April 18, 2025, 09:55:51 AM
This example was just for using XmlLite.dll with Pelles C without any additional files.

Some parts are just copied from fSDK xmllite.h

Next thing might be to create minimal XmlLite.inc for poasm


https://github.com/Frankie-PellesC/fSDK (https://github.com/Frankie-PellesC/fSDK)
https://github.com/Frankie-PellesC/fSDK/blob/master/Samples_and_Tests/XML/Xml_Sample/xml_sample.c (https://github.com/Frankie-PellesC/fSDK/blob/master/Samples_and_Tests/XML/Xml_Sample/xml_sample.c)
Title: Re: Testing XmlLite.dll
Post by: Vortex on April 18, 2025, 02:25:19 PM
Hi Timo,

Here are the function prototypes for 32-bit coding :

; include file generated by lib2inc V2.4

CreateXmlReader PROTO :DWORD,:DWORD,:DWORD
CreateXmlReaderInputWithEncodingCodePage PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CreateXmlReaderInputWithEncodingName PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CreateXmlWriter PROTO :DWORD,:DWORD,:DWORD
CreateXmlWriterOutputWithEncodingCodePage PROTO :DWORD,:DWORD,:DWORD,:DWORD
CreateXmlWriterOutputWithEncodingName PROTO :DWORD,:DWORD,:DWORD,:DWORD

Replace the DWORDs with QWORDs and you have the 64-bit version.