Stefan wrote:A find in node would be most helpful!
taazz2 wrote:XE2 Win32 wouldn't be too much trouble I think that just a update to the .inc file should be all that it takes for 64bit thought I was hopping to download the trial version and try to port it but the 15 days limit is to low for me and I don't think I can manage a port in that time.
hungary2006 wrote:I have send you an email.com
SetLength(TmpText, StrLen(PChar(TmpText)))
taazz2 wrote:I had a quick look today and I managed to install it, compile the demo program, for 32 and 64bits with out a problem there are 3 thinks you need to be aware offSo far everything seems to work as expected I can even open the existing samples with out a problem save them and then reopen them with a D2007 build Demo app no problems, I guess that the TReader, TWriter classes do a good job tagging, saving and loading the strings in either unicode or ansi format.
- search and replace PAnsiChar with PChar.
- TGraphLink.CreateTextRegion method has a line that reads < SetLength(TmpText, StrLen(PChar(TmpText))); > change it to <SetLength(TmpText, Length(TmpText)-4);>This might not be the proper way to solve this I haven't found out why those 2 setlength statements are needed in there yet I'm trying to understand. Perhaps Kambiz could help us with that.
- TSimpleGraph.WMPaint method. Rename the 2 variables Width, Height to W, H use the rename refactoring of Delphi Ctrl+Shift+E
Although I have build a 64bit exe I do not have any 64bit OS installed to test it but I do not expect any problems.
I have attached an updated DELPHIAREA.INC file that understands Delphi XE2 but you dont need it as this inc file works in reverse order than the rest of the them eg it assumes always the latest compiler and undefines if older compiler is detected.
IF you havent grabbed it already go to http://forum.delphiarea.com/viewtopic.php?f=5&t=1949 and download my extensions to simplegraph for GDI+ and run the first search and replace on the UEvsSgCanvas.pas as well.
If you have any problems post a query here and I"ll try to help.
Kambiz wrote:Thank you taazz2.
- Code: Select all
SetLength(TmpText, StrLen(PChar(TmpText)))
TmpText is a buffer for the final string. Its length is larger than the actual string, because of that I used StrLen to find the actual data string using its null character terminator.
TmpText := Trim(Text);
SetLength(TmpText, Length(TmpText) + 4);
..
..
SetLength(TmpText, StrLen(PChar(TmpText)));
Kambiz wrote:I don't think this line should be identical for both 32 and 64 bit compilers.
hungary2006 wrote:Thanks and did you get rad running?
taazz2 wrote:I had a quick look today and I managed to install it, compile the demo program, for 32 and 64bits with out a problem there are 3 thinks you need to be aware offSo far everything seems to work as expected I can even open the existing samples with out a problem save them and then reopen them with a D2007 build Demo app no problems, I guess that the TReader, TWriter classes do a good job tagging, saving and loading the strings in either unicode or ansi format.
- search and replace PAnsiChar with PChar.
- TGraphLink.CreateTextRegion method has a line that reads < SetLength(TmpText, StrLen(PChar(TmpText))); > change it to <SetLength(TmpText, Length(TmpText)-4);>This might not be the proper way to solve this I haven't found out why those 2 setlength statements are needed in there yet I'm trying to understand. Perhaps Kambiz could help us with that.
- TSimpleGraph.WMPaint method. Rename the 2 variables Width, Height to W, H use the rename refactoring of Delphi Ctrl+Shift+E
Although I have build a 64bit exe I do not have any 64bit OS installed to test it but I do not expect any problems.
I have attached an updated DELPHIAREA.INC file that understands Delphi XE2 but you dont need it as this inc file works in reverse order than the rest of the them eg it assumes always the latest compiler and undefines if older compiler is detected.
IF you havent grabbed it already go to http://forum.delphiarea.com/viewtopic.php?f=5&t=1949 and download my extensions to simplegraph for GDI+ and run the first search and replace on the UEvsSgCanvas.pas as well.
If you have any problems post a query here and I"ll try to help.
Return to DELPHI AREA Projects
Users browsing this forum: No registered users and 20 guests