sorry for the 0 question :(
Yes in delphi it's ok, no problem
the problem is when I call my dll with a VB exe.
perhaps I 'll have to go to the VB part of this site
Main Topics
Browse All TopicsHi
I made a delphi dll
wich as a function like this :
function abc( chaine : Pchar ) : PChar; stdcall;
With a delphi exe, no problem
But when I try to call this function with VB, there is a big problem.
How can I do, I think it's a problem with string and PChar.
PS I don't want to add BORLNDMM.DLL with mine.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks all
but it's a problem with VB in fact
My Function delphi is like this
function abc(first:pchar; second:pchar; third:pchar):integer; stdcall;
and I use it in vb like this
Private Declare Function abc Lib "abc.dll" (ByVal first As String, second As String, third As String) As Integer
---
Private Sub Command2_Click()
Dim i As Integer
i = b("AAA", "BBB", "CCC")
The first param is passed ok, but the param 2 and 3 are not passd well ???
Hi DelphiCool,
Every day you receive 5 'question points' in your account. When you are accepting someone's answer, your account is debited with the amount of points you've specified (10 in this case). Depending on the grade, the expert receives 'expert points' in his/her account which are the question points multiplied by the grade (A = x4, B = x3, C = x2). When you receive a fast and complete answer to your question then the usual grade is expected to be A. If you choose another grade you are expected to explain what's wrong with the proposed solution.
I see now that it's your first accepted answer here and therefore everything is OK.
Have a nice day.
Regards, Geo
Business Accounts
Answer for Membership
by: MadshiPosted on 2002-02-18 at 23:44:51ID: 6809915
Why is this a 0 point question?
Anyway, the Delphi part looks okay, you don't need borlndmm.dll, when using pchar only. I guess you're doing something wrong on the VB side. All win32 APIs are built like that (pchar + stdcall), and VB can call them, too.
Regards, Madshi.