Passing Array of data from DLL to VB 
Author Message
 Passing Array of data from DLL to VB

Hi there,
        I am trying to pass an array of data from a DLL written in C/C++, how can
I do that? The size of the array is not fixed. Thanks You.

--
Keat Jau
Final year Computer Engineering student at
University of Newcastle



Thu, 24 Feb 2000 03:00:00 GMT  
 Passing Array of data from DLL to VB

Quote:

> Hi there,
>    I am trying to pass an array of data from a DLL written in C/C++, how can
> I do that? The size of the array is not fixed. Thanks You.

[snip]

What version of VB? VB 4.0 and 5.0 uses OLE's SAFEARRAY.

--

WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!



Thu, 24 Feb 2000 03:00:00 GMT  
 Passing Array of data from DLL to VB

Check out the file called VB4DLL.TXT on the VB cd in the directory VB.
It tells you the correct types for VB arrays.  It shoulds be the same on
the VB5 CD, but I don't have it so I can't verifiy.
        A great source for writting DLL's for VB, is any of the Daniel
Appleman's Programers Guide to API.  It shows you how to recieve all
types of VB data, except VB string arrays.
        Hope that helps.

Quote:

> Hi there,
>         I am trying to pass an array of data from a DLL written in C/C++, how can
> I do that? The size of the array is not fixed. Thanks You.

> --
> Keat Jau
> Final year Computer Engineering student at
> University of Newcastle




Thu, 24 Feb 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing Array of data from DLL to VB

2. Passing array from VB to DLL and returning array

3. passing arrays from vb dll to vb form

4. PB/DLL passing multidimensional VB arrays by pointers

5. passing (string) arrays from VB to C-DLL and vice versa

6. Passing Multi-Dimension Arrays from VB to DLL

7. Pass array from ASP to VB ActiveX DLL

8. Passing array of strings to a dll in VB

9. Passing a binary array from VB to a DLL

10. Passing Arrays to Fortran DLL from VB

11. Passing arrays from VB to a DLL written in VC++

12. Passing arrays from FORTRAN dll from VB

 

 
Powered by phpBB® Forum Software