Including .h file?

Just starting out? Need help? Post your questions and find answers here.
leofenix
New User
New User
Posts: 2
Joined: Thu Mar 11, 2010 6:20 pm

Including .h file?

Post 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!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Including .h file?

Post 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
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Including .h file?

Post 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?
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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Including .h file?

Post 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 :mrgreen:

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