ExpressQuantumGrid 5自带的demo能打开,编译( ctrl + f9 )也没有问题,但运行时提示“Runtime error 216 at 0040351A”。这是什么问题呢?谢谢

解决方案 »

  1.   

    5.0版本好像网上流传的包有BUG,你可以到WWW.51Delphi.com上看看解决办法.
      

  2.   

    ExpressQuantumGrid v5.0修正及安装方法2另有修改成功一法,步骤如下:1.打开cxExtEditorsVCLD7.dpk,
    2.修改cxRichedit.pas的1821行成为
    if HandleAllocated and (Container <> nil) and container.ActiveProperties.MemoMode then3.设置option中的输出目录
    Output: system32目录(如:c:\\windows\\system32)
    unit output: ..\Developer Express Inc\ExpressEditors Library 5\Delphi 7\Lib
    dcp output: ..\Developer Express Inc\ExpressEditors Library 5\Delphi 7\Lib
    4.按compile钮进行编译
    5.重新启动delphi
    ExpressQuantumGrid_Suite_v5.0_Full_Source_Code_for_Delphi_7 控件包的修正及安装方法1
    1.如果运行Delphi_7,则先关闭。2.通过运行ExpressQuantumGrid_Suite_v5.0_Full_Source_Code_for_Delphi_7控件包中的Setup.exe来进行正常安装。3.删除操作系统的$(System) 目录中的以下文件:cxExtEditorsVCLD7.bpl
    dclcxExtEditorsVCLD7.bpl
    4.运行Delphi_7,启动中警告dclExtEditorVCLD7包不能加载,选择以后不再加载。5.在Delphi_7中通过Component->Install Packages..菜单路径把所有Express包删除。6.在Delphi_7中通过Tools->Environment Options->Library->Library path菜单路径打开Diredtories窗口。将这些路径删除:
    ......\Developer Express Inc\ExpressDataController\Delphi 7\Lib
    ......\Developer Express Inc\XP Theme Manager\Delphi 7\Lib
    ......\Developer Express Inc\CX Library\Delphi 7\Lib
    ......\Developer Express Inc\ExpressEditors Library 5\Delphi 7\Lib
    ......\Developer Express Inc\ExpressPageControl 2\Delphi 7\Lib
    ......\Developer Express Inc\ExpressQuantumGrid 5\Delphi 7\Lib添加这些路径:
    ......\Developer Express Inc\ExpressDataController\Delphi 7\Sources
    ......\Developer Express Inc\XP Theme Manager\Delphi 7\Sources
    ......\Developer Express Inc\CX Library\Delphi 7\Sources
    ......\Developer Express Inc\ExpressEditors Library 5\Delphi 7\Sources
    ......\Developer Express Inc\ExpressPageControl 2\Delphi 7\Sources
    ......\Developer Express Inc\ExpressQuantumGrid 5\Delphi 7\Sources7.在Delphi_7打开ExpressEditors Library 5\Delphi 7\Sources\cxEditorsVCLD7.dpk,编译但不要安装。8.在Delphi_7打开ExpressEditors Library 5\Delphi 7\Sources\dclcxEditorsVCLD7.dpk,编译并安装。9.在Delphi_7打开ExpressEditors Library 5\Delphi 7\Sources\cxExtEditorsVCLD7.dpk,从包管理器中打开cxRichEdit.pas单元,进行以下修改1821行,从:
    if HandleAllocated and Container.ActiveProperties.MemoMode then
    改为:
    if HandleAllocated and (Container <> nil) and Container.ActiveProperties.MemoMode then
    就行了。保守后关闭cxRichEdit.pas,编译cxExtEditorsVCLD7.dpk但不要安装。10.把$(DELPHI)\Projects\Bpl目录中编译得到的cxExtEditorsVCLD7.bpl拷贝到操作系统的$(System) 目录中。11.在Delphi_7打开ExpressEditors Library 5\Delphi 7\Sources\dclcxExtEditorsVCLD7.dpk,编译并安装。12.把$(DELPHI)\Projects\Bpl目录中编译得到的dclcxExtEditorsVCLD7.bpl拷贝到$(System) 目录中。13.在Delphi_7打开ExpressPageControl 2\Delphi 7\Sources\cxPageControlVCLD7.dpk,编译但不要安装。14.在Delphi_7打开ExpressPageControl 2\Delphi 7\Sources\dclcxPageControlVCLD7.dpk,编译并安装。15.在Delphi_7打开ExpressQuantumGrid 5\Delphi 7\Sources\cxExportVCLD7.dpk,编译但不要安装。16.在Delphi_7打开ExpressQuantumGrid 5\Delphi 7\Sources\cxGridVCLD7.dpk,编译但不要安装。17.在Delphi_7打开ExpressQuantumGrid 5\Delphi 7\Sources\dclcxGridVCLD7.dpk,编译并安装。控件包安装成功!打开\ExpressQuantumGrid 5\Delphi 7\Demos中的各个Demo,编译后可以运行!
    其中:
    ConvertGrid3Demo和ConvertGrid3MasterDetailDemo还必须同时安装
    “DevExpress ExpressQuantumGrid Suite v3.22 for Delphi7”,才行!