Results 1 to 2 of 2

Thread: Using C++ DLL IN VB6 app

  1. #1

    Thread Starter
    Member Mythrandil's Avatar
    Join Date
    Mar 2006
    Posts
    55

    Using C++ DLL IN VB6 app

    I've done some searching on this and the info was fairly scattered.

    Basicly i've made a neural network in c++ and was wondering how simple it would be to compile it into a dll and write a front end in VB.

    As far as i understand i can't use class' written in C++ only non member functions, which i guess is easily solved by having non member class functions create my class' etc

    Is it as easy as using the declare statement to access the functions in my dll? (as if they were api functions)??

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Using C++ DLL IN VB6 app

    You would just do something similar to

    VB Code:
    1. Public Declare Function RWTInitialize Lib "c:\rqt\dbacc.dll" (ByVal sQuoteID As String, ByRef nErrCode As Long, ByVal sErrText As String) As Long

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