Results 1 to 2 of 2

Thread: How to use C++ functions

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Québec, Canada
    Posts
    131

    How to use C++ functions

    Hello, for the one who knows both C++ and VB, I have a question for you.

    I would like to use in VB the function "Add", which have as argue the integers First and Second and return an integer. How could I use this function in VB?
    Khavoerm Irithyl

  2. #2
    I don't understand; is Add a C++ function? If so, it has to be in a DLL, and you can reference the function like this:
    VB Code:
    1. Public Declare Function Add Alias "AddA" Lib "mydll.dll" (First As Integer, Second As Integer)

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