我定义了两个类:
一个实体类CEmployee,封装用户信息
另外一个为数据操作类CDB_Employee;有以下一个函数
public function Add(byval m_enployee as CEmployee) as boolean
end function
使用时出现错误:
错误438
...全文
274打赏收藏
能不能再函数中用自定义的类作参数??
我定义了两个类: 一个实体类CEmployee,封装用户信息 另外一个为数据操作类CDB_Employee;有以下一个函数 public function Add(byval m_enployee as CEmployee) as boolean end function 使用时出现错误: 错误438
关注:
我在vc做的dll中定义了结构:
typedef a{
int num
bool bnum
}
输出函数: myfunc(a *temp)
-----------------------
再vb中:
type a
num as integer
bnum as boolean
end type
dim tmp as a
请问再vb中怎么调用myfunc(varptr(tmp))
而且之后,要用到tmp
怎么做?