PaulBarter
MIS
Hi. I have been writing progs for many years using VB6.
In most of my programs the database I/O is done in a separate class which is compiled as a separate DLL, and so can be called by different programs as required.
Now, however, I want to use two different I/O DLLs in the same program, and I am getting problems as they are both declaring the same data using a Type statement (and both are identical in structure).
For example, they both declare an error variable
If I try to declare a variable in the calling program e.g.
There are also several identical other Type structures which are duplicated.
Any ideas
In most of my programs the database I/O is done in a separate class which is compiled as a separate DLL, and so can be called by different programs as required.
Now, however, I want to use two different I/O DLLs in the same program, and I am getting problems as they are both declaring the same data using a Type statement (and both are identical in structure).
For example, they both declare an error variable
Code:
Public Type ERR_DATA
Code As Long
Desc As String
End Type
Dim MyErr as ERR_DATA
then VB6 does not know which definition to use, and it won't let me use a qualifier on ERR_DATAThere are also several identical other Type structures which are duplicated.
Any ideas