我坚持尝试生成具有二进制兼容性的新版COM DLL.我不明白为什么我收到这条消息:
'init' in the 'Logger' class module has arguments and/or a return type that is incompatible with a similar declaration in the version-compatible component. Original definition: Function init(aLOGDIR As String,Optional aListBox As Object,Optional aMAXLISTBoxLINES As Integer) As Boolean Current definition: Function init(aLOGDIR As String,Optional aMAXLISTBoxLINES As Integer) As Boolean
我没有改变init,你可以看到……
这是我的步骤:
>第一代没有兼容性
>在Project属性中设置二进制兼容性(引用以前生成的dll,无论是否重命名)
>第二代
>发生警告.
这是因为参数是一个对象吗?谢谢你的帮助.