捐赠 | 广告 | 注册 | 发布 | 上传 | 关于我们    
  沪ICP备05001939号 DELPHI盒子 | 盒子论坛 | 盒子文章 | 盒子问答悬赏 | 最新更新 | 论坛检索 | 下载中心 | 高级搜索    
  精品专区 | 繁體中文 | 奖励公告栏 | 直通车账号登陆 | 关闭GOOGLE广告 | 临时留言    
 
广告
评论:Windows 服务程序开发向导,支持两栖服务程序,自动托盘。
dengjiyun 592231 2017/11/14 15:40:52
XE7编译成功。桌面程序运行的时候无法退出。
shuihan20e 479348 2015/7/16 18:35:31
delphi 7安装失败,代码不全,无法使用
dorry 221241 2014/10/13 11:10:26
发现一 BUG。就是在
  if ZytApplication.IsService('ZYTModbusToSiemensPLCgate') then
  begin
    ZytApplication.ServiceName:='ZYTModbusToSiemensPLCgate';
    ZytApplication.DisplayName:='Modbus Server V1.0.0';
    ZytApplication.Description:='Modbus 到Siemens PLC网关转换 支持 OPC V1.00~V3.0'; 
    ZytApplication.initialize;
    ZytApplication.CreateForm(TfrmServerMain, frmServerMain);
    ZytApplication.Run;
  end else begin
    Application.Initialize;
    Application.CreateForm(TfrmServerMain, frmServerMain);
//Application.CreateForm(TfrmServerMain, frmServerMain); 重复了一次, 请删掉即可
    frmServerMain.Initialize(False);
    Application.Run;
  end;
dorry 220889 2014/10/10 10:37:17
在delphiXE7下需要更改:

package ZytServiceAPP;

{.$R *.res}  //去掉此行
{$R *.otares}//IDE会自动添加,如不能请手动添加即可。

向导生成的源码有一处错误:

//      cbSize := SizeOf(FIconData);去掉此行
      cbSize := FIconData.cbSize;//改成此行内容即可

我测试 XE7 成功。delphi XEx 应该均可用。
xuchuantao 220704 2014/10/6 23:47:33
XE5下不可用。
第一页 上一页 下一页 最后页 有 5 条纪录 共1页 1 - 5
 用户名:
 密 码:
自动登陆(30天有效)
 
  DELPHI盒子版权所有 1999-2023 V4.01 粤ICP备10103342号-1 更新RSS列表