CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 1999
    Posts
    2

    C++ dll used by VB



    I am trying to write a dll in VC++ 6.0 that will be used by VB clients. The VB client will pass 2 parameters both strings, the dll need to return a string. I know that VB strings and C++ strings are different. I have tried everything, and every example I have found (the examples did work, good examples!) Can someone provide me with a simple example (that works) or direct me to a refertence or example. Thanks

  2. #2
    Join Date
    Mar 1999
    Posts
    1

    Re: C++ dll used by VB



    Here is a link to a file that is written by Microsoft, that explains a lot of

    issues about programming DLLs. I think that the answer to your question can be

    found under section 4.


    ftp://ftp.vision.net.au/pub/cd/ProgLang/vb/vb4dll.txt


    Hope that helps!

  3. #3
    Join Date
    Mar 1999
    Posts
    2

    Re: C++ dll used by VB



    Thanks that did help, UNIX is so much easier.

  4. #4
    Join Date
    Apr 1999
    Posts
    4

    Re: C++ dll used by VB

    Have a look at http://support.microsoft.com/support.../q187/9/12.asp

    I need to pass strings between VC++ 5.0 and Lotus Script which is much like VB.

    The example found in the article mentioned above worked for me with one exception: I didn't succeed passing strings ByRef. However after playing around a while I had a better understanding and was able to develop a working solution.

    Drop me an Email if you are interested in my code. With a few modifications it should also work with 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
  •  





Click Here to Expand Forum to Full Width

Featured