|
-
March 29th, 1999, 04:25 PM
#1
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
-
March 29th, 1999, 06:45 PM
#2
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!
-
March 31st, 1999, 02:09 PM
#3
Re: C++ dll used by VB
Thanks that did help, UNIX is so much easier.
-
April 15th, 1999, 05:40 PM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|