Results 1 to 5 of 5

Thread: using header files

  1. #1

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    using header files

    how do i import n use a C++ header file in VB

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: using header files

    vb does not use header files. you have to re-write the code to make it work in vb. sorry.

  3. #3

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Re: using header files

    hi
    but i have seen some code snippets in which ppl have made wrapper classes for .H files, how do they do that ?

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: using header files

    They don't. you might be thinking of when people wrap APIs in their own classes, but that's obviously different.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: using header files

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width