语言转换下
以下代码是C#中实现了调用COM组件的接口ICAMenu,然后调用它的两个函数AddMenu和doFunction,
求转换为VB语言的
//[InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface Cshaddmen : ICAMenu//接口继承 { void AddMenu(out object pMenuIndex, out string pName);//函数声明 void doFunction(object para); } [Guid("5CAE1D52-83BC-4ad4-AC6D-AEB2E357C886")] [ProgId("ClbMenu.CSetMen")] public class CSetMen :Cshaddmen //使用继承后的接口Cshaddmen { public CSetMen() { } public void AddMenu(out object pMenuIndex, out string pName) { short[] aa = new short[2] { 5, 0}; pMenuIndex = aa; pName = "c# menu"; } public void doFunction(object para) { } }