DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Arguments Passed to C++ method from VB

  1. #1
    Ryan Guest

    Arguments Passed to C++ method from VB


    I'm calling the HTML Help API method that in C++
    wants the pointer to a structure. I now have the structure
    defined in VB but what do I pass to the method since
    I don't obviously have a pointer in VB?

    Thanks,
    Ryan

  2. #2
    Karl E. Peterson Guest

    Re: Arguments Passed to C++ method from VB

    Hi Ryan --

    > I'm calling the HTML Help API method that in C++
    > wants the pointer to a structure. I now have the structure
    > defined in VB but what do I pass to the method since
    > I don't obviously have a pointer in VB?


    Obviously? Surely you jest. <g> That's *exactly* what's passed when you pass a
    structure to an API. Just pass it byref, defined either explicitly or As Any. No
    problem.

    Later... Karl
    --
    http://www.mvps.org/vb






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center