Re: uninstall/delete running app

2005-05-04 Thread itrabado

If you're in linux you can use cron...

Ignacio Trabado Castillo
Dpto. Informática Desarrollo
tlf: 93 484 (8391)






Ted Yu [EMAIL PROTECTED]
Enviado por: [EMAIL PROTECTED]
04/05/2005 01:06


Para:perl-win32-users@listserv.ActiveState.com
cc:
Asunto:uninstall/delete running app

I have a program that run continuously once an hour that looks something like this:

while (1 == 1)
  {
 # stuffs ..
  sleep(3600);
  }

During uninstall, or if the customer tries to delete this program, it won't allow you to because the program is continuously running. I know you can just go into task manager and just stop it. Is there a way I can make perl run once an hour like this, but have it stop when I uninstall? 
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Win32::GUI::Grid question

2005-05-04 Thread Сергей Черниенко
Hello, all,

I'm writing Win32 GUI application and using grid control. End users
will have to fill cells of that grid with float, not integer
numbers. I have some questions:
 1) as I understood, if cell have type GVIT_NUMERIC it's
 impossible fill it with float. Is it true or I have miss
 something?
 2) in each rowthere is cell containing sum of all the other
 cell values in a row. On BeginEdit event the value of
 cell being edited substracted from sum cell value. On EndEdit
 event current value of cell added to sum cell value. But
 there is an issue - calculated total sum displayed in
 corresponding cell with comma as decimal delimiter. So I
 can't use it without some handling. Such handling is quite
 simple, but I'm just interested why comma appears.

-- 
Thankful,
 Sergey  mailto:[EMAIL PROTECTED]


___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Win32::Console and mouse on Windows 2k

2005-05-04 Thread Philippe Paclet
Hi to everybody,
I have problems with mouse clicks using  A.Capini's Win32::Console: it 
works well on Windows XP but mouse clicks are not intercepted
correctly on Windows 2k.
For example, trying Aldo's test script (test.pl) that is distributed  in 
the package Win32Console-0.03.zip in his repository,
a mouse (left) click anywhere on the console will produce a change of 
the console title  and
a mouse (right) click will  give back the original title...
I have not found anything on the mailing list about this (and  actually 
no recent mail reguarding Win32::Console).

Has anybody already encounter (and solve) this problem?
Thank you.

 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Perl Net executable build fails - cant find @INC

2005-05-04 Thread robert johnson
Hi, i really need some help.  

Ive been using Perl for a while, but am new to the ActiveState Perl Dev Kit
environment.  my perl scripts will not build into executables correctly, when I
have use module.  teh perl dev kit claims that it cant find any perl
modules in my @INC paths, and that the @INC is empty.  

I definitely have the modules installed in the right place, and these same
scripts work correctly when i run them from command line.  

The PerlNET GUI's Main window shows that my module search paths do contain
(C:\Perl\lib) and (C:\Perl\site\lib) which is where my CPAN modules are ... 
Ive even added these paths to my PERL5LIB environment variable.   I've also
tried putting a hard coded push (@INC) line in my code, as well as an
explicit require...  still no help.

here is the output of my build attempts.  Thanks for any help anyone can
provide me.



plc --shared public --norunlib --exe serial.exe J:\dl30\serial.pl


PerlNET 6.0.0 build 117102
Copyright (C) 1998-2004 ActiveState Corp.  All rights reserved.
ActiveState is a division of Sophos Plc.
Commercial license for my boss at my boss' email address
Created 'serial.exe' [Test it]
Target size: 532 KB same as last time

[DONE]

.\serial.exe
Can't locate win32/serialport.pm in @INC (@INC contains: .) at serial.pl line
195.
BEGIN failed--compilation aborted at serial.pl line 195.

[DONE]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Win32 OLE issue, maybe

2005-05-04 Thread Chris Cappelletti
Here's the situation.  I have some perl code running fine on one windows
box.  I moved it to another box and installed all the appropriate
modules.

I am now getting the following message in my error log:

Win32::OLE object version 0.1702 does not match $Win32::OLE::VERSION
0.1403 at C:/Perl/lib/DynaLoader.pm line 253


Anyone have any idea where I should look?

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Perl Net executable build fails - cant find @INC

2005-05-04 Thread robert johnson

--- robert johnson wrote:
 Hi, i really need some help.  

dangit.  right after i cross-posted this, i solved my own problem.  

for some reason, with the ActiveState PDK requires that all use statements be
placed at the very top of the program.  I had put them later in the program.  
once i moved them to the top, it built correctly.

now seems kind of silly, but whatever.

and sorry for the cross-posting.  i was getting panicky.







 Ive been using Perl for a while, but am new to the ActiveState Perl Dev Kit
 environment.  my perl scripts will not build into executables correctly, when
 I
 have use module.  teh perl dev kit claims that it cant find any perl
 modules in my @INC paths, and that the @INC is empty.  
 
 I definitely have the modules installed in the right place, and these same
 scripts work correctly when i run them from command line.  
 
 The PerlNET GUI's Main window shows that my module search paths do contain
 (C:\Perl\lib) and (C:\Perl\site\lib) which is where my CPAN modules are ... 
 Ive even added these paths to my PERL5LIB environment variable.   I've also
 tried putting a hard coded push (@INC) line in my code, as well as an
 explicit require...  still no help.
 
 here is the output of my build attempts.  Thanks for any help anyone can
 provide me.
 
 
 
 plc --shared public --norunlib --exe serial.exe J:\dl30\serial.pl
 
 
 PerlNET 6.0.0 build 117102
 Copyright (C) 1998-2004 ActiveState Corp.  All rights reserved.
 ActiveState is a division of Sophos Plc.
 Commercial license for my boss at my boss' email address
 Created 'serial.exe' [Test it]
 Target size: 532 KB same as last time
 
 [DONE]
 
 .\serial.exe
 Can't locate win32/serialport.pm in @INC (@INC contains: .) at serial.pl line
 195.
 BEGIN failed--compilation aborted at serial.pl line 195.
 
 [DONE]
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


MSWord Document Parsers

2005-05-04 Thread Lasher, Brian
Anyone know if there is a good CPAN module that I can use to convert an
MSword document into a text file.  Tried searching on CPAN, but it gave
me 1000s of modules, and very few of them seemed to be related.

-brian


Brian Lasher
Best Practices and Yield Enhancement Team
Catalog DSP Product Engineering
Texas Instruments
 
281-274-2913 (W)
281-684-4699 (C)
281-274-2279 (F)
[EMAIL PROTECTED]


___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Unnotified errors using FileOp to copy to a CD

2005-05-04 Thread Andrew McLaren
Title: Message



I have been 
attempting to use the FileOp Copy interfaceto copy file structures to a 
CD-ROM.

Where this hits an 
error, a dialogue is popped up (for instance if there is an unwritable disk in 
the drive). However, if this dialogue is cancelled, the Copy still returns with 
a successful status. From the documentation, I understand the dialogue is a 
result of the FOF_NOERRORUI option omissionfrom the Copy. I have also 
tried CopyEx with this option - the call thenfails silently, but there is 
still a successful status returned (for this I have just looked at the return 
status from the Copy - I understand that until I detect a failure here, 
$OS_ERROR,and $EXTENDED_OS_ERROR are meaningless.

Can anyone shed any 
light on this? Am I on the right track, orare Copy/CopyEx calls not the 
right mechanism for copying to a CD? 

What I need to 
achieve is to copy some structures to a CD (ideally I'd like to manage the full 
burn from code, but if I need to do the final step manually to physically write 
the CD, that would be OK. However, it is vital that I understand the success or 
otherwise of the operations.

Thanks for any 
pointers

Andrew
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Win32 OLE issue, maybe

2005-05-04 Thread Chris Cappelletti
-How much did you copy and how did you go about it?  It sounds like you
partially overwrote the -second computer's copy of Win32::OLE with a
different version.  Try using PPM to reinstall -Win32::OLE.


I didn't copy any of the perl stuff.  I installed a fresh copy of perl
and then used PPM to install all of the modules that I needed.



___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Win32 OLE issue, maybe

2005-05-04 Thread Peter Guzis
How much did you copy and how did you go about it?  It sounds like you 
partially overwrote the second computer's copy of Win32::OLE with a different 
version.  Try using PPM to reinstall Win32::OLE.

Make sure you are only copying the modules you need.  Overwriting important 
modules such as Win32::OLE can cause headaches down the road.  In the future, 
if you have a choice install modules cleanly with PPM or by downloading from 
CPAN.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Chris Cappelletti
Sent: Wednesday, May 04, 2005 11:38 AM
To: perl-win32-users@listserv.ActiveState.com
Subject: Win32 OLE issue, maybe


Here's the situation.  I have some perl code running fine on one windows
box.  I moved it to another box and installed all the appropriate
modules.

I am now getting the following message in my error log:

Win32::OLE object version 0.1702 does not match $Win32::OLE::VERSION
0.1403 at C:/Perl/lib/DynaLoader.pm line 253


Anyone have any idea where I should look?

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-04 Thread robert johnson

--- Sisyphus wrote:
 
 - Original Message - 
 From: robert johnson 
 
  So, now my question becomes trivial.  How do I get Win32::SerialPort
 towork
  under cygwin?  i tried installing this module but it dies miserably during
 the
  make.  I therefore assumed it was incompatable with cygwin.  I've
 installed it
  (win32:serial) and had it working just fine on my normal Windows perl
 build.
  Sorry for all the hand-holding, I'm feeling pretty incompetent about now.
 
 
 Installing the module is just a matter of running 'perl install.pl' (on the
 version I have, at least). If that
 doesn't work then you could manually copy the 2 '.pm' files to the
 appropriate perl folder.
 
 I expect the real problem will be that you don't have the prerequisite
 Win32::API - which used not to build straight out of the box on Cygwin, and
 I assume still doesn't. There is a version of Win32::API around somewhere
 that *does* build on Cygwin. I used to have it and may still do. See if you
 can Google it up - else, let me know, and I'll see if I can find it. (The
 only problem with Aldo's version of Win32::API is/was that the assembly code
 is/was written for MS compilers - and for Cygwin you need assembly code that
 gcc understands.)
 

Rob, Bill,

Ive installed Risacher's patched Win32::API as Rob suggested, and tried again
to install Win32::SerialPort in my cygwin build.  however, it (Win:Ser) still
fails all tests.

   [EMAIL PROTECTED] ~/SerialPort-0.19
   $ perl test.pl 
   t/test1dubious  

Test returned status 0 (wstat 139, 0x8b)
test program seems to have generated a core
   DIED. FAILED tests 1-275
Failed 275/275 tests, 0.00% okay

   (... ditto each test group ...)

   Failed 7/7 test scripts, 0.00% okay. 1749/1749 subtests failed, 0.00% okay.

any suggestions?

thanks, rob



 Just checked and managed to find the Cygwin-compatible versions of API-0.20
 and 0.21. The gas assembly code was added by Daniel Risacher
 [EMAIL PROTECTED] . He may have something more recent if you want to
 check up on Google (or contact him) - though either of those 2 versions that
 I have should be quite adequate for Win32::SerialPort. Let me know if you
 want me to send 'em over.
 
 
 Cheers,
 Rob
 
 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-04 Thread Sisyphus

- Original Message - 
From: robert johnson [EMAIL PROTECTED]


 Rob, Bill,

 Ive installed Risacher's patched Win32::API as Rob suggested, and tried
again
 to install Win32::SerialPort in my cygwin build.  however, it (Win:Ser)
still
 fails all tests.

[EMAIL PROTECTED] ~/SerialPort-0.19
$ perl test.pl
t/test1dubious

 Test returned status 0 (wstat 139, 0x8b)
 test program seems to have generated a core
DIED. FAILED tests 1-275
 Failed 275/275 tests, 0.00% okay

(... ditto each test group ...)

Failed 7/7 test scripts, 0.00% okay. 1749/1749 subtests failed, 0.00%
okay.

 any suggestions?

I'm a little concerned that perhaps you didn't install Win32::API correctly.
Can you confirm that you built and installed Win32::API by running (in
succession):
perl Makefie.PL
make test
make install

and that each of the steps ran without error ?

Afaict, the first test in SerialPort test1.t simply tries to load
Win32::SerialPort . and that generated a core, which makes me suspect
that there's something wrong with Win32::API.

As another check, does the following script simply print done, and then
exit:

use Win32::API;
print done\n;
__END__

If that works ok, try changing the first line to use Win32::SerialPort;
(without quotes) and see what happens. If everything is still ok maybe you
can hack at test1.t to see just where the problem arises.

That's about all I can come up with for the moment :-)

Cheers,
Rob

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Win32::Console and mouse on Windows 2k

2005-05-04 Thread Sisyphus

- Original Message - 
From: Philippe Paclet [EMAIL PROTECTED]
To: perl-win32-users@listserv.ActiveState.com
Sent: Wednesday, May 04, 2005 11:29 PM
Subject: Win32::Console and mouse on Windows 2k



 Hi to everybody,

 I have problems with mouse clicks using  A.Capini's Win32::Console: it
 works well on Windows XP but mouse clicks are not intercepted
 correctly on Windows 2k.
 For example, trying Aldo's test script (test.pl) that is distributed  in
 the package Win32Console-0.03.zip in his repository,
 a mouse (left) click anywhere on the console will produce a change of
 the console title  and
 a mouse (right) click will  give back the original title...

Is that the correct behaviour ? - or is it the incorrect behaviour ?

For me, on Windows 2k, a left click will insert the word 'Select' at the
start of the title, and a right click will remove the word 'Select', thus
returning to the original title.

I'm using Win32::Console-0.031 (from libwin32-0.191). The only documented
difference between 0.031 and 0.03 is that a typo in GenerateCtrlEvent() was
fixed.

I find that I always end up having to hit the 'Esc' key to escape the
clutches of  Aldo's test.pl, and that the console is then permanently
altered, anyway. Seems buggy to me, but faik that's the way it's supposed to
happen.

Cheers,
Rob

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-04 Thread robert johnson

--- Sisyphus  wrote:
 
 - Original Message - 
 From: robert johnson
 
 
  Rob, Bill,
 
  Ive installed Risacher's patched Win32::API as Rob suggested, and tried
  again to install Win32::SerialPort in my cygwin build.  however, it 
  (Win:Ser) still fails all tests.
 
 [EMAIL PROTECTED] ~/SerialPort-0.19
 $ perl test.pl
 t/test1dubious
 
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
 DIED. FAILED tests 1-275
  Failed 275/275 tests, 0.00% okay
 
 (... ditto each test group ...)
 
Failed 7/7 test scripts, 0.00% okay. 1749/1749 subtests failed, 0.00%
 
  any suggestions?
 
 I'm a little concerned that perhaps you didn't install Win32::API correctly.
 Can you confirm that you built and installed Win32::API by running (in
 succession):
 perl Makefie.PL
 make test
 make install

youre right.  during the make there were several warnings.

API.c: In function `XS_Win32__API_LoadLibrary':
API.c:90: warning: cast from pointer to integer of different size
API.c: In function `XS_Win32__API_GetProcAddress':
API.c:102: warning: cast to pointer from integer of different size
API.c: In function `XS_Win32__API_FreeLibrary':
API.c:121: warning: cast to pointer from integer of different size
API.xs: In function `XS_Win32__API_PointerAt':
API.xs:171: warning: cast to pointer from integer of different size
API.xs: In function `XS_Win32__API_Call':
API.xs:217: warning: cast to pointer from integer of different size

and it failed 1 out of 2 tests.
t/testFAILED test 2  

 Afaict, the first test in SerialPort test1.t simply tries to load
 Win32::SerialPort . and that generated a core, which makes me suspect
 that there's something wrong with Win32::API.
 
 As another check, does the following script simply print done, and then
 exit:
 
 use Win32::API;
 print done\n;
 __END__

right again:  Sementation Fault.  core dumped.





Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-04 Thread Sisyphus

- Original Message - 
From: robert johnson [EMAIL PROTECTED]


 youre right.  during the make there were several warnings.

 API.c: In function `XS_Win32__API_LoadLibrary':
 API.c:90: warning: cast from pointer to integer of different size
 API.c: In function `XS_Win32__API_GetProcAddress':
 API.c:102: warning: cast to pointer from integer of different size
 API.c: In function `XS_Win32__API_FreeLibrary':
 API.c:121: warning: cast to pointer from integer of different size
 API.xs: In function `XS_Win32__API_PointerAt':
 API.xs:171: warning: cast to pointer from integer of different size
 API.xs: In function `XS_Win32__API_Call':
 API.xs:217: warning: cast to pointer from integer of different size


They shouldn't matter.

 and it failed 1 out of 2 tests.
 t/testFAILED test 2


I think that might just be a poorly constructed test (also note that there's
no segfault during the running of the tests - which is a good sign.)

In test.t, at the very last line, change /TEMP/, to /TEMP/i . Hopefully that
will then pass the test. In any case, have test.t print out $lpbuffer so
that you can see that it does in fact contain the name of the temporary
directory.

  As another check, does the following script simply print done, and
then
  exit:
 
  use Win32::API;
  print done\n;
  __END__

 right again:  Sementation Fault.  core dumped.

If 'make test' did not segfault, then that little script ought not segfault
either. Did 'make install' fail to do what it should have ?

Cheers,
Rob

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: MSWord Document Parsers

2005-05-04 Thread Chris Wagner
You can use AntiWord.  It's part of Cygwin.





--
REMEMBER THE WORLD TRADE CENTER ---= WTC 911 =--
...ne cede males

0100

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs