View Full Version : How to make Pascal API wrappers?

11-09-2009, 03:21 PM
Are there any tutorials on making Pascal wrappers for C APIs? I've searched all over the internet but couldn't find any.

11-09-2009, 03:40 PM
Try to look for reading about h2pas

12-09-2009, 05:10 AM
Unfortunately there is no real easy way to make Pascal wrappers from C headers. Programs like h2pas very well may do a decent job for simple things, but every so often you'll run into something a bit more complicated and you have to know enough C and Pascal to be able to do what the headers is doing in both languages.

Oh and a good knowledge of C data types compared to Pascal data types will help immensely too!

12-09-2009, 03:53 PM
Rudy's articles may help a lot