c++ builder 6.0 中使用大漠插件

版权声明:本文为博主原创文章,未经博主允许不可以转载。 https://blog.csdn.net/aasmfox/article/details/84300386

以前用VC写的脚本控制程序,可以使用bcb6.0来写了。这里写个备注,在bcb6.0中的使用方法  

step1.注册dm.dll  {不然提示没有注册类}

Regsvr32 dm.dll

step2.导入类型库

点击Install ,再点CreateUnit,在ActiveX页面生成组件图标,和类文件 

step3.使用类操作,在Form上拖放一个对象

	String strText;
	strText = dmsoft1->Ver() ;
	MessageBox(Handle,strText.c_str(),"提示",MB_ICONINFORMATION);

on the other side:用代码操作

	String strText;
    Tdmsoft* dm = new Tdmsoft(NULL) ;
	strText = dm->Ver();
    delete dm ;
	MessageBox(Handle,strText.c_str(),"提示",MB_ICONINFORMATION);

c++builer6.0真是一个好东西啊。我应该早点用啊。!!!!!!!!!

猜你喜欢

转载自blog.csdn.net/aasmfox/article/details/84300386