?? 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 + -