Thanks Charles
I don't need to convert any apis to vb, I was just wondering how it was done
that was all, I was not sure what the process was.
once again thanks for your help
Duncan
> -----Original Message-----
> From: Charles Feduke [mailto:webmaster@r...]
> Sent: 18 April 2001 18:31
> To: professional vb
> Subject: [pro_vb] RE: How do you go about converting and API
> from C++ to
> VB?
>
>
> > How do you go about converting and API from C++ to VB?
>
> Experience. The biggest problem I've ran into is not
> having the SDK list
> the values for constants so I have to dig up the .h file and
> find all the
> constants there.
>
> Of course you could just write a C++ program and link
> it to the proper .h
> file and have it display the values for constants that you
> pass so you won't
> have to hunt for them. Only if I were so clever...
>
> Anyway if you need some API calls converted, tell us
> from what library
> you're looking at and/or post the original C++ declarations for them.
>
> Word of warning: there are differences b/w Pascal and
> C++ libraries.
> Pascal drops strings in bass ackwards; also C++ strings are
> Null delimited
> (they end with a null) so you have to keep that in mind when
> your passing a
> string in as a parameter and you don't have a parameter
> length parameter.
>
> - Chuck