Re: Read file binary

2002-10-08 Thread johnny brasseur
May be this can help perldoc -f read c u --- Harald Wopenka [EMAIL PROTECTED] a écrit : Hi there, I was unable to read a file bytewise (or pieces - offset/length). I played around with +, binmode, seek, write, etc. but it didn't work. Please post (or send) a little howto for me.

Re: Win32/Unix File differences

2002-10-08 Thread Thomas R Wyant_III
John Drabinowicz [EMAIL PROTECTED] wrote: I just got the O'Reilly Learning Perl on Win32 Systems book and have a question about using the directory/file structure. This book says that I can walk the directory as shown is example 1, [using globbing] but I have been using example 2 [which

RE: Win32/Unix File differences

2002-10-08 Thread Tony White
Title: Win32/Unix File differences Now *I* may not be making any sense, but it seems to me that Example 1 is globbing as well, but it's only going to get file/directory entries that start with anything and end in "test.pl". It's certainly not code that I would use to walk a directory tree.

Re: LWP discrimination?

2002-10-08 Thread Carl Jolley
On Tue, 8 Oct 2002, Paul Flint wrote: Magnus Hjorleifsson Jr [EMAIL PROTECTED] wrote: Are you just going out to the web site to see if it is up and running maybe using an http get? No. I'm using a HEAD request. But I admit I have no knowledge of the http protocol or the transaction

multicasting on win32

2002-10-08 Thread James McDermet
Has anyone written a multicast app on Win32? I am attempting to create a chat-like app to run on WinNT and Win2K. Microsoft states that WinNT can receive multicast packets as a client, http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q179982; and multicasting is supportted on Win2K.

RE: multicasting on win32

2002-10-08 Thread Magnus Hjorleifsson Jr
Title: RE: multicasting on win32 Actually I know that someone had wriiten a IM type application that runs on WinNT and 2k it is written in VB though The name of the App is CryptIM if you do a google search you should be able to find it Magnus -Original Message- From: James

Adding a Timer in Win32::GUI

2002-10-08 Thread Hawley, Eric
Okay I have been attempting to add a timer to a message box and have been unsuccessful in being able to do so. I want to have it so that after the message box displays the user has 10 seconds to either click YES or NO with default as YES. If after 10 seconds the user has failed to make a

Re: Adding a Timer in Win32::GUI

2002-10-08 Thread Johan Lindstrom
At 14:53 2002-10-08 -0400, Hawley, Eric wrote: Okay I have been attempting to add a timer to a message box and have been unsuccessful in being able to do so. I want to have it so that after the message box displays the user has 10 seconds to either click YES or NO with default as YES. If after

RE: Adding a Timer in Win32::GUI

2002-10-08 Thread Peter Eisengrein
Title: RE: Adding a Timer in Win32::GUI Assuming $choice is your message box, perhaps something like this would work? ### untested sub No_Click { $choice-Hide(); $Window-Timer-Kill(); ### do something else return 1; } sub Timer { if ($choice-IsVisible) { $choice-Hide();

RE: Adding a Timer in Win32::GUI

2002-10-08 Thread Krummel, James C - PGGC-6
Eric, Here is another way to do This: use Win32::OLE; $vbOKOnly = 0; $vbYesNo = 4; $vbCritical = 16; $vbWarning = 48; $vbInformation = 64; $WSHShell = Win32::OLE-CreateObject('Wscript.Shell'); $Return = $WSHShell-Popup(Windows could not finish a system task and needs to restart.\n\nNOTE: You

msvc++ and environment variables

2002-10-08 Thread Sisyphus
Hi, Not strictly a perl issue but: My vcvars32.bat file (which sets the environment for compilation) contains some lines like these: set path= various folders;%path% set include= other folders;%include% set lib = different folders;%lib% I can get a listing of the folders in the path by simply

RE: msvc++ and environment variables

2002-10-08 Thread FARRINGTON, RYAN
Title: RE: msvc++ and environment variables try set from a command prompt that will output every environment varible... -Original Message- From: Sisyphus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: msvc++ and environment

RE: msvc++ and environment variables

2002-10-08 Thread Gibb, Thomas A
Hi Rob, At the command prompt type 'set' and it will include the parameters you are looking for. If you want more information, use Dave Roth's excellent Win32::AdminMisc module to access all the other parameters of the Environment. This module also gives you the ability to differentiate between

Re: Win32/Unix File differences

2002-10-08 Thread $Bill Luebkert
John Drabinowicz wrote: Hi Gang, I'm curious, I just got the O'Reilly Learning Perl on Win32 Systems book and have a question about using the directory/file structure. This book says that I can walk the directory as shown is example 1, but I have been using example 2. Now I have

setting From: using Mail::Send/Mailer

2002-10-08 Thread Peter Lavender
Hi Everyone, I'm just mucking about with Mail::Mailer Mail::Send basically becuase I need a simple lightweight SMTP mailer. The problem I have hit is that the From field is always postmaster@machine name I would however like to set this myself. I have looked over the perldoc for

Re: setting From: using Mail::Send/Mailer

2002-10-08 Thread Peter Lavender
* Edgington, Jeff ([EMAIL PROTECTED]) wrote: I use Mail::SendMail and the from works fine on it. Yeah, I could also have used MIME::Lite too.. I was thinking that the MailTools package was like a default install for activestates perl.. which is why I was using Mail::Send Mail::SendMail is

Re: msvc++ and environment variables

2002-10-08 Thread Sisyphus
- Original Message - From: FARRINGTON, RYAN [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 6:06 AM Subject: RE: msvc++ and environment variables try set from a command prompt that will output every environment varible... Thanks Ryan. (I'm sure I

RE: setting From: using Mail::Send/Mailer

2002-10-08 Thread Rogers, John
Hi, I dont know all about Net::SMTP but following snipit has always worked for me. I get message with From: To: and Subject: JohnR use Net::SMTP; $mailserver='SMTPserver-or-IP'; $mail = Net::SMTP-new($mailserver,Timeout = 120,Debug = 1,); #mail is authorised username most accept anonymous

Win32::OLE question and outlook

2002-10-08 Thread smackdab smackdab
Hi, I have gotten *somewhat* good at using this for outlook... I can get many MailItem functions to work: reply, move, delete, etc. But Forward doesn't. This is the error I get: Usage: Win32::OLE::Forward(self, method) at test.pl line 273.\n This works my $newmsg = $origmsg-Reply(); But this

'require Dynaloader;'

2002-10-08 Thread Sisyphus
Hi, Can someone tell me the circumstances under which 'MyModule.pm' should 'require Dynaloader' ? I've just built a bigint/primes module that links in the bigint/primes functions from openSSL (libeay32.lib). It also needs to load libeay32.dll. Seems to me *that* would be the circumstance under

RE: setting From: using Mail::Send/Mailer

2002-10-08 Thread Subbarao_Gade
Hi You can use Mail::Sender; use Mail::Sender; $sender = new Mail::Sender( { from ='AVupdate_HOT.mycompay.com', smtp ='x.x.x.x' }); Regards SubbaRao -Original Message- From: Peter Lavender [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, October 09,