Returning strings to VB from a DLL
Posted: Mon Oct 06, 2003 6:58 pm
Hi im trying to return s string from PB to VB without success, here is my code:
PB code:
VB decleration:
VB use:
The command buttons caption is "" after the function is called, any help appreciated.
2_bits
PB code:
Code: Select all
ProcedureDLL.s GetName()
ProcedureReturn "Test"
EndProcedure
Code: Select all
Public Declare Function GetString Lib "purebasic.dll" () As String
Code: Select all
Private Sub Command1_Click()
Command1.Caption = GetString
End Sub
2_bits