how do i import n use a C++ header file in VB
Printable View
how do i import n use a C++ header file in VB
vb does not use header files. you have to re-write the code to make it work in vb. sorry.
hi
but i have seen some code snippets in which ppl have made wrapper classes for .H files, how do they do that ?
They don't. you might be thinking of when people wrap APIs in their own classes, but that's obviously different.
You should read the Dan Appleman book ("Visual Basic Programmer's Guide to the Win32 API") as it has a good section on converting C++ declarations from header files to VB structures and import declarations.