Recent

Author Topic: Save with TRichMemo  (Read 5192 times)

WizardNo.7

  • New Member
  • *
  • Posts: 31
Save with TRichMemo
« on: October 22, 2013, 04:32:59 pm »
I've looked around and tried a number of algorithms, but I can't seem to figure out how to save a RTF file with the TRichMemo component?

Any and all help will be greatly appreciated!
|  Windows 8.1 Pro 64-bit  |  Lazarus 1.1  |  FPC 2.7.1  |

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Save with TRichMemo
« Reply #1 on: October 22, 2013, 04:38:49 pm »
« Last Edit: October 22, 2013, 04:48:39 pm by typo »

WizardNo.7

  • New Member
  • *
  • Posts: 31
Re: Save with TRichMemo
« Reply #2 on: October 22, 2013, 05:14:52 pm »
Thanx Typo, I have in the past already downloaded a lzRichEdit package but it did not want to install no matter what I tried. I will try this one as soon as possible and come back to you. But I would be real glad if the TRichMemo's Save function can be made to work!

Edit: Same problem:

ERROR ->
Code: [Select]
gtk2extrah.inc(17,22) Fatal: Can not find gtk2ext used by Gtk2Extra, ppu=..\..\..\fpc\2.7.1\units\i386-win32\gtk2\gtk2ext.ppu
Even though the .ppu IS in that location!!!

What to do?
« Last Edit: October 23, 2013, 10:21:28 am by WizardNo.7 »
|  Windows 8.1 Pro 64-bit  |  Lazarus 1.1  |  FPC 2.7.1  |

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7317
Re: Save with TRichMemo
« Reply #3 on: October 23, 2013, 10:33:38 am »
Thanx Typo, I have in the past already downloaded a lzRichEdit package but it did not want to install no matter what I tried. I will try this one as soon as possible and come back to you. But I would be real glad if the TRichMemo's Save function can be made to work!

Edit: Same problem:

ERROR ->
Code: [Select]
C:\Users\Eduan\Downloads\lzRichEdit\lzRichEdit\interfaces\win32\win32wsrichbox.pas(161,15) Error: Illegal type conversion: "LongWord" to "TStream"

You are probably using 64-bit, and you can't store a 64-bits pointer (class reference like TStream) in a dword (pdword^). So the error is correct. The problem is thus not only in this routine, but also in the code that
calls this code (and loads dwcookie with a pointer, probably cutting off the top half of a pointer)

Easy solution: don't use 64-bit, hard solution: update code for 64-bit.

 

WizardNo.7

  • New Member
  • *
  • Posts: 31
Re: Save with TRichMemo
« Reply #4 on: October 23, 2013, 10:35:54 am »
Am using 32-bit now, and had already updated my post.
Quote
ERROR ->
Code: [Select]

gtk2extrah.inc(17,22) Fatal: Can not find gtk2ext used by Gtk2Extra, ppu=..\..\..\fpc\2.7.1\units\i386-win32\gtk2\gtk2ext.ppu


Even though the .ppu IS in that location!!!

What to do?
Any help there maybe?  ;D

Thanks anyway!
« Last Edit: October 23, 2013, 11:18:50 am by WizardNo.7 »
|  Windows 8.1 Pro 64-bit  |  Lazarus 1.1  |  FPC 2.7.1  |

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7317
Re: Save with TRichMemo
« Reply #5 on: October 23, 2013, 01:20:50 pm »
1) Why are you using gtk on windows?
2) FPC sources should only be in the browse path, not in the unitpath.

WizardNo.7

  • New Member
  • *
  • Posts: 31
Re: Save with TRichMemo
« Reply #6 on: October 23, 2013, 01:27:01 pm »
Quote
1) Why are you using gtk on windows?
2) FPC sources should only be in the browse path, not in the unitpath.

1) Lazarus and the components added it? I didn't...
2) Explain please?
|  Windows 8.1 Pro 64-bit  |  Lazarus 1.1  |  FPC 2.7.1  |

WizardNo.7

  • New Member
  • *
  • Posts: 31
Re: Save with TRichMemo
« Reply #7 on: December 06, 2013, 01:47:12 pm »
Bump ;) ;D
|  Windows 8.1 Pro 64-bit  |  Lazarus 1.1  |  FPC 2.7.1  |