📄 math.java
字号:
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
/*
* @author:dzy
* 调用VB编写的COM组件
*/
class math
{
public static void main(String[] args)
{
Dispatch test = new Dispatch("MathProj.Math");
System.out.print("3+4=");
System.out.println(Dispatch.call(test, "Add", new Variant(3), new Variant(4)));
System.out.print("3*4=");
System.out.println(Dispatch.call(test, "Mult", new Variant(3), new Variant(4)));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -