Greetings,
I'm new to PB and I'm having terrible trouble with GPFs in my DLL's when I call them from VB6.
For example, I have a DLL written in PB called ENCRYPT defined in PB as follows:
FUNCTION ENCRYPT (BYVAL str_type AS STRING, BYVAL str_input AS STRING, BYVAL str_key AS STRING) EXPORT AS STRING
In VB6 this is declared as:
Declare Function ENCRYPT Lib "SVE.DLL" (ByVal str_type As String, ByVal str_input As String, ByVal str_key As String) As String
The problem I have is that when I call the function from VB is works sometime, GPS's sometime and gives the wrong result other times. It also seem to change the value of the paramaters to incomprehensible values.
The function works fine when I call it from a PowerBasic EXE.
Can anyone tell me what I'm doing wrong?
-------------
Mark Jarzebowski
Melbourne, Australia
[email protected]
I'm new to PB and I'm having terrible trouble with GPFs in my DLL's when I call them from VB6.
For example, I have a DLL written in PB called ENCRYPT defined in PB as follows:
FUNCTION ENCRYPT (BYVAL str_type AS STRING, BYVAL str_input AS STRING, BYVAL str_key AS STRING) EXPORT AS STRING
In VB6 this is declared as:
Declare Function ENCRYPT Lib "SVE.DLL" (ByVal str_type As String, ByVal str_input As String, ByVal str_key As String) As String
The problem I have is that when I call the function from VB is works sometime, GPS's sometime and gives the wrong result other times. It also seem to change the value of the paramaters to incomprehensible values.
The function works fine when I call it from a PowerBasic EXE.
Can anyone tell me what I'm doing wrong?
-------------
Mark Jarzebowski
Melbourne, Australia
[email protected]
Comment