Results 1 to 3 of 3

Thread: Urgent...I need help!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    3

    Unhappy

    Hello,
    This is the first time I come here.
    I need help on my final project...Can anyone tell me how I can use a Visual C++ routine in a Visual Basic application?
    This would solve all my problems!!

    Any help would be welcome!

    Thank You!

    Rui Goncalves

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

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


    lRC = RWTInitialize(txtQuoteNumber, lError, sErrText)

  3. #3
    New Member
    Join Date
    Sep 1999
    Location
    Spain
    Posts
    12

    Talking

    Hi Rui, the only way I know is adding your C++ routine to a DLL, that is, compile it into a DLL. After that, you can use it from VB.

    If you compile it into a DLL, I can help you to set the VB routine declaration.

    Good luck.

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