Re: [perl-win32-gui-users] Perl as EXE
I've been using the latest version of Perl2Exe and it works very well. The its doesn't require extra comments to find modules, executables are smaller than with previous versions, they load quicker, and it works with Win32::GUI. Haven't tried ActiveState's PDK. Kev. |-+> | | "Chirhart, Brian"| | | <[EMAIL PROTECTED]> | | | Sent by: | | | [EMAIL PROTECTED]| | | ceforge.net | | || | || | | 26/02/2002 18:02 | | || |-+> >--| | | | To: perl-win32-gui-users@lists.sourceforge.net | | cc: | | Subject: [perl-win32-gui-users] Perl as EXE | >--| I am very new to the whole Perl world, but I find it really powerful!! I am curious though on whether you can run a Perl app as an EXE so the end user would not need to have Perl installed on their PC. Is this at all possible? Sorry if this question does not specifically apply to Win32-GUI ___ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
[perl-win32-gui-users] Problem With Fork and Win32::GUI
I'm getting a problem using using fork() with Win32::GUI and wondered if anyone else had had any success. I can get a program to create a pipe for communication, and fork. I then have the parent handle the window actions and the child do any actual work required. When a windows event happens the parent tells the child what to do, the child does perfoms the required action and updates the window with the required results. The advantage of this method is that you can minimise or move the window while actions are being performed. This all works fine (and, as an aside, compiles fine with Perl2Exe) so I decided to try a further enhancement. One of my programs uses a module that can give debugging info to STDOUT. It seemed a nice idea to capture this and display it on my window. To do this I needed a parent to handle the window, a child to handle screen updating and a further child (or grandchild) to carry out the required actions. The pipes required are from parent to child, and child to grandchild in both directions (ie parent tells child action to be performed, child tells grandchild, captures grandchilds STDOUT and displays it in the required control). As psuedo code this looks something like this Use Win32::GUI my $Win= # create windows with appropriate controls # create pipe for parent/child communication if ( fork() ) { # Parent with GUI event subs # start GUI event loop } else { # Child # create pipes for Child/Grandchild communication if ( fork() ) { #Child # loop { # read command from parent # report them to grandchild # diplay grandchilds output in appropriate control # } } else { #Grand Child # loop { # Read command from child # perform required action #} } } This again works fine, except if a large (I haven't tried to work out the limit) amount of data is sent from the grandchild and displayed in what ever contol. When this happens the program crashes on exit. The grandchild and child exit correctly, memory usage shoots and then I get a Dr Watson error. My guess is that its something to do with memory allocation for the control. I've tried using a RichEdit, a TextBox and even displaying the piped data in the status bar, all with the same results. Any suggestions? Thanks, Kev.
RE: [perl-win32-gui-users] (no subject)
> -Original Message- > From: Ultimate Red Dragon [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 23, 2002 12:58 PM > To: perl-win32-gui-users@lists.sourceforge.net > Subject: [perl-win32-gui-users] (no subject) > > > Has anyone written/know how it could easily be done, a > WYSIWYG HTML editor > using a RichEdit field? > > It doesn't need to do much, just links, bold, italics, underline. > ppm install RTF::Parser There is no documentation that I could find. It installes rtf2html.pl and rtf2text.pl in your perl/bin folder. You can use that to convert an RTF file to HTML. I have only done one transformation, so I cannot help you any. I dont even know if there is a string method to avoid the intermediate save to disk step. If you are feeling nice, maybe you can contact the maintainer and have this added or add yourself and push to CPAN/PPM with docs.
RE: [perl-win32-gui-users] (no subject)
Thanks, I'll look into it. Now I have to find a practical means to allow people to format the text within the window. (Really, converting it isn't even that great a problem, it's allowing people to hit a bold button etc... > -Original Message- > From: Ultimate Red Dragon [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 23, 2002 12:58 PM > To: perl-win32-gui-users@lists.sourceforge.net > Subject: [perl-win32-gui-users] (no subject) > > > Has anyone written/know how it could easily be done, a > WYSIWYG HTML editor > using a RichEdit field? > > It doesn't need to do much, just links, bold, italics, underline. > ppm install RTF::Parser There is no documentation that I could find. It installes rtf2html.pl and rtf2text.pl in your perl/bin folder. You can use that to convert an RTF file to HTML. I have only done one transformation, so I cannot help you any. I dont even know if there is a string method to avoid the intermediate save to disk step. If you are feeling nice, maybe you can contact the maintainer and have this added or add yourself and push to CPAN/PPM with docs. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com