instead of using stribg, use a VARIANT instead.....that might help.
if you use strings in delphi made dll's you also have to make sure that
another dell is supplied and is also in the path where the delphi dll
is....so use a variant, it wouls be easier and simplier...
<this text is from a NEW DLL wizard generated file in delphi 4:-
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
NOTE in delphi 3 this file is called :- DELPHIMM.DLL
Cheers, Jeremy coulter
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, December 08, 1999 4:02 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: calling a VB dll from delphi
>
>
> hi all
> I am trying to call a Dll from delphi, the dll comes up fine but the
> path name parameter returns with " cant open file "
>
> this is a description of the VB call which works fine but it would be
> tidier to call direct from delphi
>
> Private Declare Function ExportQbwData lib "qbint32"(By Val
> dataPath As String)As Long
>
> any help or sugestions greatly appreciated
>
> thanks Ian
> Ian Fear
> 1427 Te Kopia rd
> RD 1
> Rotorua
> New Zealand
> Phone 64 7 333 1548
> Fax 64 7 333 2548
> mob 025 742 772
> [EMAIL PROTECTED]
> GMT +1200
> http://mysite.xtra.co.nz/~IJFear/
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz