VB6:关于“Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types.”的编译错误
如果类中,某函数或过程,使用了UDT(用户自定义类型) 作为参数传递,则会出现以上编译错误,
比较好的解决办法是把 Public 改成 Friend.
参考:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_20835373.html