math.java

来自「源程序用户的学生管理系统」· Java 代码 · 共 19 行

JAVA
19
字号
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 + =
减小字号Ctrl + -
显示快捷键?