Page 1 of 1
Including .h file?
Posted: Thu Mar 11, 2010 6:25 pm
by leofenix
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?
Posted: Thu Mar 11, 2010 7:55 pm
by ts-soft
You can use the headerconverter in pb:
Code: Select all
RunProgram(#PB_Compiler_Home + "SDK\Header Converter\Header Converter.exe")
but you have to correct something, to work.
greetings
Thomas
Re: Including .h file?
Posted: Thu Mar 11, 2010 8:19 pm
by skywalk
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?
Re: Including .h file?
Posted: Thu Mar 11, 2010 9:09 pm
by ts-soft
skywalk wrote:@ts-soft
So, by fixes, do you mean adding padding to any structures defined?
the converter doesn't translate all or translate to types not available in pb
Without changes the most headers won't work, but my last use is some time back.