Thread: Pass values to C++ dll and return result

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    91

    Pass values to C++ dll and return result

    I can create a simple dll in C++ and call it from a VB app ok. But can you pass values/strings to the C++ dll and have it return the function?

    I want to open a db and search selected fields using VB as the GUI with the dll doing the work.


  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    I am not familiar with VB. Yes, it is possible given that the data type that the DLL returns is compatible with the VB process.

    Kuphryn

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    What you want is absolutely possible but its very tricky. Show us some code and we can start from there.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New string functions
    By Elysia in forum C Programming
    Replies: 11
    Last Post: 03-28-2009, 05:03 AM
  2. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  3. I'll try again: C++ DLL return values for VB
    By WebSnozz in forum C++ Programming
    Replies: 6
    Last Post: 01-20-2003, 01:12 AM
  4. C++ .Net DLL return values
    By shuesty in forum C++ Programming
    Replies: 15
    Last Post: 01-19-2003, 05:39 PM
  5. Getting a return value from a DLL in (N)ASM
    By dirkduck in forum C++ Programming
    Replies: 2
    Last Post: 08-02-2002, 02:13 AM