Including .h file?
Including .h file?
Hi, I want to use the Vmware VIX API with Purebasic and I'm having difficulties to understand how to transform the vix.h and other .h files the API has to Purebasic. I can use the API trough Comate but I want to access the API directly, is there an example or quick way to include or transform the C headers files of the Vix API to PB? Thanks in advance for the help!
Re: Including .h file?
You can use the headerconverter in pb:
but you have to correct something, to work.
greetings
Thomas
Code: Select all
RunProgram(#PB_Compiler_Home + "SDK\Header Converter\Header Converter.exe")
greetings
Thomas
Re: Including .h file?
Doh!
Didn't know there was a .h converter.
That would have saved a fair amount of typing.
@ts-soft
So, by fixes, do you mean adding padding to any structures defined?
Didn't know there was a .h converter.
That would have saved a fair amount of typing.
@ts-soft
So, by fixes, do you mean adding padding to any structures defined?
Last edited by skywalk on Mon Jul 07, 2014 11:32 pm, edited 1 time in total.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Including .h file?
the converter doesn't translate all or translate to types not available in pbskywalk wrote:@ts-soft
So, by fixes, do you mean adding padding to any structures defined?

Without changes the most headers won't work, but my last use is some time back.