用delphi作了个OCX,在装有delphi的机子上正常执行,没有装delphi的机子上显示如下后也可继续运行,是不是少了几个文件,如何不提示那个对话框?
http://61.177.181.108/bb/7/20031224160559%e6%9c%aa%e5%91%bd%e5%90%8d1.jpg
http://61.177.181.108/bb/7/20031224160559%e6%9c%aa%e5%91%bd%e5%90%8d1.jpg
解决方案 »
- DELPHI 7 SQL server语句问题
- 谁有PUDN的帐号,帮我下个东西~~
- 导SQLServer数据库的问题
- 有谁知道TCriticalSection与TRTLCriticalSection这两种临界区有什么区别?
- 非高手莫入!sql问题
- 怎样用Delphi实现Windows托盘程序?
- 关于XP与2000系统EXCEL导出的超级难题,谁能解决(在线等)
- 关于XE5安卓下怎样连接sqlserver的问题
- 〓〓〓〓 如果一行输入大于250个字符,请问如何换行 〓〓〓〓
- 如何為Win2K添加一個Administrators權限的用戶
- 不懂,DLL的问题
- 请问如何在DELPHI中安装TQuickRep等报表控件?
看到这样的提示似乎是变量写入错误。
GetSystemDirectory(SysPath,sizeof(SysPath)-1);
if not Fileexists(strpas(SysPath)+'\Macromed\Flash\swflash.ocx') then
begin
StrPcopy(Dire,strpas(SysPath)+'\Macromed');
CreateDirectory(Dire,nil);
StrPcopy(Dire,strpas(SysPath)+'\Macromed\Flash');
CreateDirectory(Dire,nil);
StrPcopy(Source,extractfilepath(paramstr(0))+'swflash.ocx');
StrPcopy(Dest,strpas(SysPath)+'\Macromed\Flash\swflash.ocx');
CopyFile(Source, Dest, False); OCXHand:= LoadLibrary(Dest);
RegFunc:= GetProcAddress(OCXHand, 'DllRegisterServer');
if RegFunc <> 0 then
ShowMessage('错误!请与程序供应商联系');
FreeLibrary(OCXHand);
end;
和ntdll.dll无关 安装和不安装delphi这个文件是一样的
http://61.177.181.108/bb/15/20040104083230%e6%9c%aa%e5%91%bd%e5%90%8d1.jpg