Board index » delphi » Creating a with Delphi - Passing strings to VB
pfill...@infobahnos.com (Pierre Fillion)
![]() Delphi Developer |
Fri, 27 Feb 1998 03:00:00 GMT
Creating a with Delphi - Passing strings to VB
Hi,
I'm trying to enhance my VB application with a DLL I'm writing in Here's a sample of my VB declaration and code: '****************************************************** '****************************************************** Dim sMyString As String sMyString = Space(255) LabMyLabel.caption = sMyString '****************************************************** Here's a sample of my Delphi Dll {******************************************************} Uses exports begin Interface Uses Function MyStr : TBasicString; export; implementation function MyStr: TBasicString; begin Result := BStrPCopy('Allo'); End. If a use a PChar or string it give me a GPF the TBasicString type Does anyone know what's wrong in the way I return that string to Thanks in advance for you help! -Pierre .:.:.:.:.:.:..:.:.:.:.:.:.:.:.:..:.:.:.:.:.:..:.:.:.:.:.:..:. |