I have a project in which VB will be calling a DLL.
The DLL may have a various amount of returns in an array TYPE
It returns fine with PB when PB calls the DLL, and again, it may be a VB issue but a return error about subscript out of range or something is occuring (I'm lacking information still)
ie:
mydata(1).whatever
mydata(2).whatever
Mydata(1).whatever2
Etc..
Anyway I want to return this so a VB app can call it, and maybe I am doing things right already...??
Thanks!
Scott
-------------
Scott Turchin
[This message has been edited by Scott Turchin (edited February 05, 2000).]
The DLL may have a various amount of returns in an array TYPE
It returns fine with PB when PB calls the DLL, and again, it may be a VB issue but a return error about subscript out of range or something is occuring (I'm lacking information still)
ie:
mydata(1).whatever
mydata(2).whatever
Mydata(1).whatever2
Etc..
Anyway I want to return this so a VB app can call it, and maybe I am doing things right already...??
Code:
Type ProdInfo Value1 As Asciiz * 3 Value2 As Asciiz * 25 Value3 As Asciiz * 12 End Type Declare Function ParseEmailFile(FileSpec As Asciiz,pInfo() As ProdInfo,pInfoQty As Long) As String 'In Winmain: Dim pInfo(1 to 20) as ProdInfo 'Again, in PB/DLL it calls the DLL and returns everything correctly...Maybe it's a question of How do you call a TYPE in VB???
Scott
-------------
Scott Turchin
[This message has been edited by Scott Turchin (edited February 05, 2000).]
Comment