在vc中声明如下:
typedef struct {
float left;
float top;
float right;
float bottom;
}RECT;
bool GetString( RECT rect )
我在vb中如此定义和使用:
Public Type RECT
left As Single
top As Single
right As Single
bottom As Single
End Type
Public Function GetString( ByVal rect As RECT )As Boolean//声明Dim bl As Boolean
bl = GetString ( rect )//调用
可vb报错说: 用户定义类型不能使用!!这是什么原因啊?
typedef struct {
float left;
float top;
float right;
float bottom;
}RECT;
bool GetString( RECT rect )
我在vb中如此定义和使用:
Public Type RECT
left As Single
top As Single
right As Single
bottom As Single
End Type
Public Function GetString( ByVal rect As RECT )As Boolean//声明Dim bl As Boolean
bl = GetString ( rect )//调用
可vb报错说: 用户定义类型不能使用!!这是什么原因啊?
--------------------------------------------------------------
程序,犹如人生。
....
End Type