I have two questions:
1)I need to convert this two struct declaration (in C lenguage) to a "User defined" ( Type Statement) in Visual Basic 6.0
typedef struct{
DWORD size;
BOOL stat1;
char lpszName[15];
DWORD stat2;
}MYST1,*LPMYST1;
typedef struct {
INT num1;
SYSTEMTIME time1;
}MYTIME;
then, i need to pass a variable of type *LPMYST1
to a DLL function :
int function1(HANDLE a,INT b, LPMYST1 lpc)
and the variable of type MYTIME to DLL function:
int function2(HANDLE a,SYSTEMTIME b,MYTIME mt)
2)how can i Declare the above functions in Visual Basic 6.0 Syntax?
Thanks.
1)I need to convert this two struct declaration (in C lenguage) to a "User defined" ( Type Statement) in Visual Basic 6.0
typedef struct{
DWORD size;
BOOL stat1;
char lpszName[15];
DWORD stat2;
}MYST1,*LPMYST1;
typedef struct {
INT num1;
SYSTEMTIME time1;
}MYTIME;
then, i need to pass a variable of type *LPMYST1
to a DLL function :
int function1(HANDLE a,INT b, LPMYST1 lpc)
and the variable of type MYTIME to DLL function:
int function2(HANDLE a,SYSTEMTIME b,MYTIME mt)
2)how can i Declare the above functions in Visual Basic 6.0 Syntax?
Thanks.