PBSharePack. ŻŻŻŻŻŻŻŻŻŻŻ Author: Poul Bak Copyright İ 2003 - 2004 : Bak-O-Soft (Poul Bak). All rights reserved. http://bak-o-soft.dk/ Mailto:info@bak-o-soft.dk Component Version: 5.00.00.00 PBSharePack contains 6 (+ 2) easy-to-use components using DYNAMIC-sized filemapping to share memory between applications/processes/threads or exe and DLL. Automatic Singlewrite-multiread access locks. Works simultaniously or selectively as client and server. Max performance - share bytes or megabytes without changing properties - the components automatically resizes the shared memory - no AVs nor memory-waste. Internally the components use a TStream descendant to read/write to the shared memory - making it easy to share any variable/record/object with/without streaming capabilities. The components fire events when other components change the shared memory. Multiple components can be dropped on a form or created at runtime. TPBShareSingle is a universal sharecomponent giving you direct access to the sharestream. Reading and writing via callback-events with direct access to the stream. TPBShareMulti shares a dynamic list of different-sized elements. Only one element in local memory - to save memory. Reading and writing via callback-events with direct access to the stream. TPBShareStringList shares a TStrings object - either an internal list, maintained by the component, or an external - like Memo1.Lines. AutoUpdate property. TPBShareMemIni shares an internal TMemIniFile - with or without an external file. AutoUpdate property. TPBShareImages shares a dynamic list of DIFFERENT sized bitmaps. Only one bitmap in local memory - to save memory. TPBCustomShare and TPBCustomShareMulti are the two base classes the components are derived from. Makes it easy to create your own specialized components. TPBShareOneInstance is a small component that limits your app to one instance. 2nd instance sends the commandline back before terminating. Context-sensitive help is included. 10 demos w/source included. Legal stuff: ------------ PBSharePack is Shareware. The source is distributed to give you the best testing possibilities. There are no timelimits or 'nag-screens'. Some optimizations are not included in the unregistrered version. The UNREGISTRERED version may only be used for testing purposes. Applications using the UNREGISTRERED PBSharePack may not be distributed in any way. Applications developed using the REGISTRERED PBSharePack are yours alone, Bak-O-Soft have no rights to it. Of course the REGISTRERED version may only be distributed as runtime packages with your application or compiled into your application. PBSharePack is provided 'as-is' and Bak-O-Soft is under no circumstances responsible for any damage, what soever, that it might cause to anyone or anything. How to buy a license: ----------------------------- The price for PBSharePack is: $ 100 (Discount when paying in DKR - e-mail for details). To buy a licence online, point your browser to: http://www.regsoft.net/purchase.php3?productid=57532 for secure online ordering or: http://www.regsoft.net/purchase_nonsecure.php3?productid=57532 for nonsecure online ordering. Buying a licence gives you: The unlimited and optimized source code for this and all future versions of the product. The right to use the components in commercial applications. The right to unlimited support. A good feeling inside ! Installation: ------------- Note: If you are upgrading, you should still follow the instructions below, simply overwriting the old files. First make sure that packagefiles (.bpl) are saved in a folder in the system-path (DOS-path). Check 'Environment settings' in Delphi ! 1. Unzip all files to a folder of your choice. Note for Delphi 4/BCB4: All forms are saved as text format. To convert them into Delphi 4 binary format: Open the folder where you have unzipped the files. Doubleclick 'Convert_Forms.bat'. Now the forms are in Delphi 4 format. When you later open the forms, Delphi might tell you that 'Property does not exist'. Just ignore - the new properties are not used. 2. For unregistrered version: Copy 'Unregistrered_PBSharePack.dll' to your 'Windows\System' folder. For Registrered version: 'Unregistrered_PBSharePack.dll' is not needed. If you have it on disk you can delete it (after you have recompiled the package and all applications using it). 3. Start Delphi / C++Builder (if you haven't done so). 4. If you have unzipped to a folder that is not in the Delphi Search path, add it: Select 'Tools', 'Environment options...', 'Library' tab, add the full path to the folder to 'Library path'. 5. Select 'Files', 'Open', 'Delphi Package Source' as filetype and browse to the folder. a) Delphi/BCB 4 & 5: Select 'PBSharePack45Run.dpk' and 'open'. b) for BCB5: Select Project | Edit Option Source to open the package options in the editor. Add the "-LUvcl50" option to PFLAGS. a) Delphi/BCB 6+: Select 'PBSharePackRun.dpk' and 'open'. b) for BCB6+: Select Project | Edit Option Source to open the package options in the editor. Add the "-LUvcl" option to PFLAGS. Delphi tells you that it can't find a resource file and recreates it. That's ok. It might also tell you that the package is an older version. Press yes to: 'Is it ok to update?' 6. Click 'Compile'. Close the window and save changes. 7. Select 'Files', 'Open', 'Delphi Package Source' as filetype and browse to the folder. Delphi/BCB 4 & 5: Select 'PBSharePack45.dpk' and 'open'. Delphi/BCB 6+: Select 'PBSharePack.dpk' and 'open'. Delphi tells you that it can't find a resource file and recreates it. That's ok. It might also tell you that the package is an older version. Press yes to: 'Is it ok to update?' For Delphi 5: Add 'dsnide50.dcp' to the 'Requires' clause. 8. Click 'Compile'. 9. Click 'Install'. Close the window and save changes. Now you have a new Palette-page named 'PBShare' with the new components. Install context-sensitive help: ------------------------------- (x is your Delphi version) 1. Move or copy 'PBSharePack.hlp' and 'PBSharePack.cnt' to ..\Delphix\Help folder. Either use the OpenHelp tool included in Delphi or follow the guidelines below. 2. Doubleclick 'Delphix.cnt' and 'Microsoft Help Workshop' starts. Click 'Index Files', 'add'. Type 'PBSharePack' as Help title and 'PBSharePack.hlp' as Help filename. Click 'Ok'. 3. Include 'PBSharePack.cnt' on the main page (Insert above). 4. Exit 'Microsoft Help Workshop' and save the changes. 5. Repeat steps 2 - 4 with file: 'Delxvcl.cnt'. Now you have full context-sensitive help for the PBSharePack components. It is strongly recommended to read the help file for PBSharePack. -------------------------------- I have included 9 demos showing the basics. Load, compile and run. (See the code for more details). If you find any bugs, have any great ideas or just a comment or question, feel free to e-mail.