View Issue Details

IDProjectCategoryView StatusLast Update
0006363JEDI VCL00 JVCL Componentspublic2015-09-21 17:47
ReportersenderAssigned ToAHUser 
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.49 
Summary0006363: JvRichEdit.pas compile error caused by DWORD_PTR is undefined.
DescriptionProduct version is JVCL348CompleteJCL26-Build5178.zip from sourceforge. When I install it to Delphi 7, compiler stops at compling JvRichEdit.pas and says DWORD_PTR is not defined.

I checked the source code and fixed it by adding compile time conditions. Please check the attachment file for the patch.
TagsNo tags attached.

Activities

2014-11-25 16:57

 

JvRichEdit.pas.patch (990 bytes)
*** C:/Program Files (x86)/JEDI/JVCL/run/JvRichEdit.old.pas	Tue Nov 25 23:17:33 2014
--- C:/Program Files (x86)/JEDI/JVCL/run/JvRichEdit.pas	Tue Nov 25 23:12:48 2014
***************
*** 6010,6016 ****
  begin
    with EditStream do
    begin
!     dwCookie := DWORD_PTR(AConverter);
      pfnCallBack := StreamSave;
      dwError := 0;
    end;
--- 6010,6016 ----
  begin
    with EditStream do
    begin
!     dwCookie := {$IFDEF COMPILER19_UP}DWORD_PTR{$ELSE}Longint{$ENDIF}(AConverter);
      pfnCallBack := StreamSave;
      dwError := 0;
    end;
***************
*** 6062,6068 ****
    try
      with EditStream do
      begin
!       dwCookie := DWORD_PTR(Cookie);
        pfnCallBack := StreamLoad;
        dwError := 0;
      end;
--- 6062,6068 ----
    try
      with EditStream do
      begin
!       dwCookie := {$IFDEF COMPILER19_UP}DWORD_PTR{$ELSE}Longint{$ENDIF}(Cookie);
        pfnCallBack := StreamLoad;
        dwError := 0;
      end;
JvRichEdit.pas.patch (990 bytes)

AHUser

2014-11-25 19:24

developer   ~0021073

This was fixed in revision 13a6de00518eac11b24696cef1af0ae4b8c38aef (2014-05-08)

https://github.com/project-jedi/jvcl

Issue History

Date Modified Username Field Change
2014-11-25 16:57 sender New Issue
2014-11-25 16:57 sender File Added: JvRichEdit.pas.patch
2014-11-25 19:24 AHUser Note Added: 0021073
2014-11-25 19:24 AHUser Status new => resolved
2014-11-25 19:24 AHUser Fixed in Version => Daily / GIT
2014-11-25 19:24 AHUser Resolution open => fixed
2014-11-25 19:24 AHUser Assigned To => AHUser
2015-09-21 17:47 obones Fixed in Version Daily / GIT => 3.49