高分,IUnknown *参数问题
我在VC中做的COM 对象IMyList有个方法为Add( [in] IUnknown * p) 为了测试 IMyList ,定义了 IStudent
当在VB中调用时应该怎么调用
Dim temp As New MyList
Dim stu As New Student
stu.Name = "hello world"
temp.Add (stu)
编译不能通过,改成
Dim temp As New IMyList
Dim stu As New IStudent
stu.Name = "hello world"
temp.Add (stu) 也不行,请问是为什么?