Click to See Complete Forum and Search --> : C++ dll used by VB
Roy W Bradley
March 29th, 1999, 03:25 PM
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
Marshall Harnish
March 29th, 1999, 05:45 PM
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!
Roy W Bradley
March 31st, 1999, 01:09 PM
Thanks that did help, UNIX is so much easier.
Peter Gloor
April 15th, 1999, 05:40 PM
Have a look at http://support.microsoft.com/support/kb/articles/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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.