调用OCX控件的步骤:1、在系统中注册该ocx控件,命令:regsvr32.exe 控件位置(加 /u 参数是取消注册)2、在.net的工具箱中添加该控件,拖到form中去就可以了。不用工具箱的话,自己手工添加,需要注意一个问题,就是要用Aximp.exe来包装一下ocx控件的类,然后再程序中引用生成的dll就可以了。aximp [options]{file.dll | file.ocx}The ... Read More
posted @ 2010-03-30 16:25 SouthAurora Views(4694) Comments(0) Diggs(0) Edit
一.Delphi的ActiveX控件编写注意事项. 1.异常语句 try FViews.Add(ATable); FDataStore.Add(TGRPGSPDataSource.Create(ATable.CreateView)); except Raise Exception.Create('报表已经存在!'); end; 在except代码里不能使用 "Raise Exception.Cr... Read More
posted @ 2010-03-30 15:29 SouthAurora Views(1438) Comments(0) Diggs(0) Edit