- 两个关键环节:导入ocx控件,创建实例。
- 1 注册ocx:
- regsvr32.exe alasunsmscon.ocx
- 2 在CMD窗口中执行:
- AxImp.exe alasunsmscon.ocx
- 生成两个文件:alasun.dll,Axalasun.dll
- 3 在项目中引用Axalasun.dll
- 4 调用
- Axalasun.Axalasunsms sms = new Axalasun.Axalasunsms();
- sms.CreateControl();
- 就可以使用了
- //该片段来自于http://www.codesnippet.cn/detail/1409201513665.html
来源: http://www.codesnippet.cn/detail/1409201513665.html