
FB II Compiler
PG PRO
Debugging
Memory
System
Mathematics
Resources
Disk I/O
Windows
Controls
Menus
Mouse
Keyboard
Text
Fonts
Drawing
Sound
Clipboard
Printing
Communication
ASM
|
RESOURCES
Store Edit field's content into resources
OK. Now if I understand this correctly, if I send a handle created with GET FIELD to FN pGreplaceRes, I do not have to call KILL FIELD.
This is because FN pGreplaceRes uses ADDRESOURCE, when it adds a new resource, which changes the handle into a resource handle and then marks the handle as purgable with SETRESATTRS so that the Memory manager will purge it when it needs the space. If the resource already exists, FN pGreplaceRes uses FN DISPOSEH to dispose of the handle I sent.
Is this correct?
You got it! :-) If you ever want to use a handle after adding it to your res fork, be sure and do a GetReource (or equivalent) to get it loaded into memory again before using it.
|