RE: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread Erik Felton
Here is my functional solution: #!/usr/bin/perl -w use strict; use POSIX; use POSIX qw(mbstowcs wcstombs); my $MB_string = "My String"; my $str_len = length( $MB_string) ; my $WC_string = " " x $str_len; #allocate 2x the space print "\$MB_string = [$MB_string]\n\n

RE: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread Erik Felton
Hello, Thank you for the response. I read the same documents, and I inferred that they work, regardless of their use. I am attempting to use the WIN32::API::Prototype module to call MultiByteToWideChar() and WideCharToMultiByte(). And I'm having some success. I'll post my soluti

MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread Erik Felton
. Do I need to allocate space for $WC_String? - E:\>perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) - Thanks Erik Felton #!/usr/bin/perl -w use strict; use POSIX; use POSIX qw(mbstowcs

RE: run a process as System account

2004-12-08 Thread Erik Felton
inside of it. Good Luck Erik Felton -Original Message- From: Paul Sobey [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 4:37 AM To: Marie-eve URVOY Cc: Perl-Win32 Subject: RE: run a process as System account Not that I'm aware of. You could easily schedule the job to r

RE: 2 Questions: Sorting a Hash and Reading From Columns

2004-11-09 Thread Erik Felton
sort keys %food_color) { print "$food is $food_color{$food}.\n"; } This sorts the keys by their associated values: foreach $food (sort { $food_color{$a} cmp $food_color{$b} } keys %food_color) { print "$food is $food_color{$food}.\n"; } This sorts by len

Win32::Process::Create Sillyness!

2004-10-01 Thread Erik Felton
" c:\\helloworld.txt", #NOTE, leading space 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); $ProcessObj->Wait(INFINITE); - Can someone explain to