RE: [OLE] safe to fork?

2006-11-03 Thread Jan Dubois
Matt writes: > I have been running into "Bizarre SvType" errors when trying to use fork > with Win32::OLE. Based on this message from last year, it looks like this > is expected, although undesired behaviour: > > http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-database/2720402 > > Are t

RE: Win32 and alarm

2006-11-28 Thread Jan Dubois
Hirosi Taguti writes: > I hear that Win32 cann't use "alarm" for a timeout. > The sample code in Camel book or Cookbook is not valid > on Win32. Is this true even now? Yes, alarm() on Windows will not interrupt a blocking system call. > I must execute some external command by @rc = `SOME.exe`, >

Re: Why does ASPN's archive lag so far behind?

2006-12-20 Thread Jan Dubois
On Thu, 21 Dec 2006 02:46:02 +1100, "Sisyphus" <[EMAIL PROTECTED]> wrote: >From: "Suresh Govindachar" <[EMAIL PROTECTED]> >> >> The newest posting on ASPN's archive of perl-win32-users >> mailing list >> http://aspn.activestate.com/ASPN/Mail/Browse/Plain/perl-win32-users/ >> is from Decembe

Re: ActiveState's 64-bit build of perl

2007-01-02 Thread Jan Dubois
On Tue, 2 Jan 2007 19:35:39 +1100, "Sisyphus" <[EMAIL PROTECTED]> wrote: >Hi, >Some questions regarding the 64-bit build: > >1) With which version of Visual Studio was it built ? It does not use Visual Studio at all; it uses the compiler included in the Windows Platform SDK. I'm not sure of the

Re: Inspecting a COM object

2007-01-09 Thread Jan Dubois
On Wed, 10 Jan 2007 09:36:23 +0800, Foo JH <[EMAIL PROTECTED]> wrote: >I was wondering if there is any API that lets me inspect a COM object in >Perl. By this I mean list out the functions, classes, stuff like that. > >I see this happening with the OLE browser that comes with the ActivePerl >HTM

Re: @INC order has changed on build 819

2007-01-21 Thread Jan Dubois
On Mon, 22 Jan 2007 09:28:56 +1100, "Sisyphus" <[EMAIL PROTECTED]> wrote: >On build 817 and earlier, @INC lists perl/lib before perl/site/lib. (This is >in keeping with other versions of Win32 perl.) >But with build 819, @INC lists perl/site/lib ahead of perl/lib. > >Seems an odd change to make.

Re: @INC order has changed on build 819

2007-01-22 Thread Jan Dubois
On Tue, 23 Jan 2007 01:31:07 +1100, "Sisyphus" <[EMAIL PROTECTED]> wrote: >> Note that the ActiveState PPM repositories don't yet include updated >> versions of bundled modules, but we are working on this. They will only >> be visible via PPM4 though. >> > >Seems a pity to limit this service to P

Re: checking for infinite loops

2007-01-26 Thread Jan Dubois
On Fri, 26 Jan 2007 20:29:38 -0500, [EMAIL PROTECTED] (Chris Wagner) wrote: >At 11:54 AM 1/27/2007 +1100, Sisyphus wrote: >>The alarm() function now works on Windows: > >Yes but I believe it doesn't work in all circumstances. I don't remember >seeing anything about Windows having an all working a

ANNOUNCE: ActivePerl 5.8.8.820

2007-01-30 Thread Jan Dubois
I'm happy to announce the release of ActivePerl 5.8.8.820. http://www.ActiveState.com/ActivePerl Major changes in build 820 are: * Improved support for Unicode filenames on Windows Many Perl internals will try to use the short 8.3 filename whenever the long filename cannot be represented

ANNOUNCE: Perl Dev Kit 7.0 Beta 2 available

2007-01-31 Thread Jan Dubois
I'm happy to announce the release of the Perl Dev Kit 7.0 Beta 2. http://www.activestate.com/products/perl_dev_kit/beta.plex If you never heard of the Perl Dev Kit before: ActiveState Perl Dev Kit (PDK) is a suite of tools for rapidly developing and delivering Perl applications. It include

Re: Problem with error "Can't call method "Select" on an undefined value" in Win32::OLE Excel script

2007-02-01 Thread Jan Dubois
On Thu, 1 Feb 2007 10:22:55 -0800, "Glen Plantz" <[EMAIL PROTECTED]> wrote: ># *** > >I get the error " "Can't call method "Select" on an undefined value" on >the line: > > >$excel_Retrieve_Workbook->ActiveSheet->Range("A4")->Select(); > >#

Perl and Daylight Saving Time on Windows

2007-03-05 Thread Jan Dubois
Prompted by a bug report regarding the new DST rules I had a closer look how localtime() determines Daylight Saving Time on Windows. This information is not really specific to Perl but applies to all Windows applications that use either the MSVCRT runtime library, or the Win32 API to determine DST

RE: STDIN not available/@ARGV empty

2007-03-09 Thread Jan Dubois
On Fri, 09 Mar 2007, Stuart Arnold wrote: > I came in on the tail of this problem. In windows, when a .pl is > associated to Perl, you need to check that the "Open" is set to > something like: "c:\perl\bin\perl.exe" "%1" %* the important part is > the "%1 %* > > You do this under "tools->folder opt

RE: STDIN not available/@ARGV empty

2007-03-09 Thread Jan Dubois
On Thu, 08 Mar 2007, Nelson R. Pardee wrote: > When I use "perl pgmname" all works as advertised! I can see the > command line arguments and STDIN. So that gives me a workaround, > although it really is convenient not to have to know the path to the > program (and may save me trouble later if I mov

RE: STDIN not available/@ARGV empty

2007-03-09 Thread Jan Dubois
On Fri, 09 Mar 2007, Chris Wagner wrote: > > It doesn't work for me either. On my system it opens printargs.pl in > notepad. Editing is the default action under Explorer. The shell shouldn't > care about Explorer's settings. Now if I change the default action to Run, > it works as expected. Be

RE: localtime failing on DST change

2007-03-13 Thread Jan Dubois
On Tue, 13 Mar 2007, Bill Luebkert wrote: > My 'localtime' function output doesn't reflect DST since the Sunday > changeover. This is expected if you have the TZ environment variable set because Microsoft didn't release an updated MSVCRT.dll. If you don't use TZ, then DST _should_ be correct for

RE: how to round a floating-point value to an integer value

2007-03-16 Thread Jan Dubois
On Fri, 16 Mar 2007, Su, Yu (Eugene) wrote: > Interesting. Any explanation why sprintf treats 3.5 and 4.5 > differently in rounding? It is called "unbiased rounding", which has the advantage of not adding an upward trend to your numbers: http://en.wikipedia.org/wiki/Rounding Note that Bill's

RE: how to round a floating-point value to an integer value

2007-03-16 Thread Jan Dubois
On Fri, 16 Mar 2007, Jan Dubois wrote: > On Fri, 16 Mar 2007, Su, Yu (Eugene) wrote: > > Interesting. Any explanation why sprintf treats 3.5 and 4.5 > > differently in rounding? > > It is called "unbiased rounding", which has the advantage of not > addi

RE: PDK beta

2007-03-28 Thread Jan Dubois
On Tue, 27 Mar 2007, Spencer Chase wrote: > I have never figured out if there really is a PDK list or how to get > on it so I am writing to this group from which I do get e-mail. There is indeed a PDK mailing list. You should be able to subscribe to it through the web interface at: http://li

RE: cmd /u

2007-04-10 Thread Jan Dubois
On Tue, 10 Apr 2007, Glenn Linderman wrote: > Thanks for the response. But cp850 and cp1252 are not Unicode, but > byte-size subset. That allows translation of codes common to both > subsets to be displayed properly on the default console (which uses > code page 850) in spite of cp1252 being the de

RE: TK problem

2007-04-10 Thread Jan Dubois
On Tue, 10 Apr 2007, Spencer Chase wrote: > I really need to figure this out, I can not run any perl scripts on my > main computer that use TK. > > Some how, I have gotten a mismatch between the TK object version and > $TK::XS. I have no idea what this XS stuff is. It seems to be called > by the dy

RE: -C switch

2007-04-20 Thread Jan Dubois
On Thu, 19 Apr 2007, Glenn Linderman wrote: > Perlrun sez: > > > (In Perls earlier than 5.8.1 the |-C| switch was a Win32-only switch > > that enabled the use of Unicode-aware ``wide system call'' Win32 > > APIs. This feature was practically unused, however, and the command > > line switch was ther

RE: PDK - 7

2007-04-23 Thread Jan Dubois
You will need an installation of the "Oracle Instant Client" libraries on the machine where you want to run the application. You could also copy the following files from your Perl\bin directory: oraociei10.dll oci.dll Note that the first file is about 80MB (compresses down to less tha

RE: strange problem with newSVpvn

2007-04-26 Thread Jan Dubois
This is indeed correct: * You are yourself responsible for not calling into a single interpreter from multiple threads at the same time. * You must make sure that each thread that calls into the Perl interpreter calls PERL_SET_CONTEXT() before calling into Perl. It is also good practice to s

RE: Win32::OLE - ? encoding of returned strings

2007-04-27 Thread Jan Dubois
On Fri, 27 Apr 2007, Mike Trotman wrote: > I am writing a CGI application that uses WIN32::OLE to interface to > Microsoft ADO, MS Access, SQL Server and MSXML for XML documents and > XSLT transformations. > > I suspect that something in the way I am passing data around (or in > the ADO implementat

RE: Win32::OLE - ? encoding of returned strings

2007-05-01 Thread Jan Dubois
ncorrect? IE - does the automatic conversion correctly detect the CP of the OLE output? Thanks Jan Dubois wrote: On Fri, 27 Apr 2007, Mike Trotman wrote: I am writing a CGI application that uses WIN32::OLE to interface to Microsoft ADO, MS Access, SQL Server and MSXML for XML documents and XS

RE: :encoding(UTF-8) bug [Was: Re: cmd /u]

2007-05-10 Thread Jan Dubois
On Thu, 10 May 2007, Glenn Linderman wrote: > > Perl build 819. > > > > Can anyone explain the 7th line? > > Or, lacking an explanation, could someone at least test this on their > machine, and see if they encounter the same issue, so I know whether it > is my machine/installation, or a general pr

RE: Win32::OLE - filtering out ms word formatting characters

2007-05-11 Thread Jan Dubois
I guess these will just be CR/NL characters. You should be able to strip them in Perl, e.g. with $wordcell = $tbl->Cell($row,$col)->Range->{Text}; $wordcell =~ s/[\x00-\x1f]//g; $sheet->Cells($row,$col)->{Value} = $wordcell; Cheers, -Jan From: [EMAIL PROTECTED] [mailto:[E

RE: Problem with Win32::GetOSVersion()

2007-05-23 Thread Jan Dubois
On Wed, 23 May 2007, Sisyphus wrote: > The Win32 documentation (wrt Win32::GetOSVersion) states: > > - > Win32::GetOSVersion() > [CORE] Returns the list (STRING, MAJOR, MINOR, BUILD, ID), ... > . > . > Currently known values for ID MAJOR and MINOR are as f

RE: uselongdouble=undef in 64-bit build (why?)

2007-06-04 Thread Jan Dubois
On Mon, 04 Jun 2007, Sisyphus wrote: > Just wondering why ActiveState's 64-bit build of perl has > "use64bitint=define" but "uselongdouble=undef". > > I have no doubt that there are good reasons - just wondering what they are :-) The Microsoft compilers (both 32 and 64-bit) use the same 8-byte re

RE: uselongdouble=undef in 64-bit build (why?)

2007-06-04 Thread Jan Dubois
On Mon, 04 Jun 2007, Sisyphus wrote: > On Tue, 05 Jun 2007, "Jan Dubois" <[EMAIL PROTECTED]> wrote: >> I just verified that at least the 64-bit Platform SDK compilers still >> use 8 bytes for "long double" variables. Therefore defining >> uselongdou

RE: reading file metadata

2007-06-11 Thread Jan Dubois
On Mon, 11 Jun 2007, János Gonzales wrote: > I was wondering how and if perl can read file Title, Subject, Author, > Category, Keywords and Comments on files in windows. > > If you right click on any file in windows and pick properties > > summary, these fields are available for you to edit. How ca

RE: Win32 Shortcut?

2007-06-25 Thread Jan Dubois
On Mon, 25 Jun 2007, Michael Higgins wrote: > I can't seem to find win32::shortcut... I'm assuming some other ppm- > available module now has this feature, but I haven't found it yet. It is part of the libwin32 package. It is already installed if you are using ActivePerl. One problem is that it

RE: how to use OLE method with constant

2007-07-10 Thread Jan Dubois
On Tue, 10 Jul 2007, James Shuttlesworth wrote: > according to the documentation, the same 'Fields' method should allow > me to update the field as well - indeed in an asp example provided > this works fine (sets the selected users name to 'NewName') > > Set objStudent = Server.CreateObject("EAC

ActiveState releases ActivePerl 5.8.8.822

2007-08-02 Thread Jan Dubois
ActiveState is pleased to announce ActivePerl 5.8.8.822, a maintenance release of the complete, ready-to-install Perl distribution for Windows, Mac OS X, Linux, Solaris, AIX and HP-UX. For detailed information or to download ActivePerl, see: http://www.activestate.com/products/activeperl/ ==

RE: win32::ole (excel) question

2007-08-10 Thread Jan Dubois
The first sheet name is never changed from "Sheet1" to begin with because you are trying to set it to a name with 37 characters. The maximum sheet name length in Excel is 31 characters. It would be nice if Excel returned an error if you try to assign an invalid name, but it doesn't appear to

RE: perl58.dll: Perl_sv_2iv_flags (undefined reference)

2007-08-24 Thread Jan Dubois
On Fri, 24 Aug 2007, Suresh Govindachar wrote: > Building VIM with dynamic Perl support gives error messages > such as the following: > > gobj/if_perl.o:if_perl.c:(.text+0x1c1f): > undefined reference to `Perl_sv_2iv_flags' This looks like you compiled if_perl.c against the

RE: perl58.dll: Perl_sv_2iv_flags (undefined reference)

2007-08-24 Thread Jan Dubois
On Fri, 24 Aug 2007, Suresh Govindachar wrote: > Jan Dubois wrote: > >On Fri, 24 Aug 2007, Suresh Govindachar wrote: > >> Building VIM with dynamic Perl support gives error messages > >> such as the following: > >> > >&

RE: perl58.dll: Perl_sv_2iv_flags (undefined reference)

2007-08-27 Thread Jan Dubois
On Fri, 24 Aug 2007, Suresh Govindachar wrote: > Sisyphus suggested linking with C:/opt/perl/lib/CORE/perl58.lib > (which does have the symbols in it) in the command that creates > if_perl.o and/or in the command that builds gvim.exe (which is also > the command that reports the missing ref

RE: perl58.dll: Perl_sv_2iv_flags (undefined reference)

2007-08-27 Thread Jan Dubois
On Mon, 27 Aug 2007, Suresh Govindachar wrote: > > So ActiveState is "exporting" Perl_sv_2iv_flags and > Perl_newXS_flags in a way that is different from the > way they export other symbols. Nope, this is all incorrect. I've now downloaded the vim sources to see what is really going on: T

RE: perl58.dll: Perl_sv_2iv_flags (undefined reference)

2007-08-27 Thread Jan Dubois
On Mon, 27 Aug 2007, Suresh Govindachar wrote: > Thanks for looking into this. I don't think the person who did the > original work to embed perl in Vim is still activly interested in > Vim. I can't live without vim and perl. Is there a better way to > embed perl so as to be version indepen

RE: How to make this patch for vim work in more situations?

2007-08-29 Thread Jan Dubois
On Tue, 28 Aug 2007, Suresh Govindachar wrote: > > Hello, > > Here's what I came up with for a patch to account for two new > symbols (Perl_sv_2iv_flags, Perl_newXS_flags) introduced in > ActiveState perl for build 822 and later (these symbols were > preventing the building of vim with dy

RE: Any hint when 5.10 will be out?

2007-08-29 Thread Jan Dubois
On Wed, 29 Aug 2007, Foo JH wrote: > Just raising my hand that I'm eagerly awaiting the release of > 5.10...what's the news? I think it will be "soon", as in the next month or two. Note that this is a guess, not a promise, as I have no control over it. Cheers, -Jan _

RE: ACTIVEPERL_VERSION used to be a string and so fails >=822 test

2007-09-17 Thread Jan Dubois
On Fri, 14 Sep 2007, Suresh Govindachar wrote: > ACTIVEPERL_VERSION is a string in older versions of ActivePerl. > Googling showed ACTIVEPERL_VERSION as a number in 5.8.7 build 813; > and we are only concerned with later buids of 5.8.8. So I decided > to use the following guard: > > #if

RE: ActivePerl and xs

2007-09-21 Thread Jan Dubois
On Fri, 21 Sep 2007, Suresh Govindachar wrote: > > I am starting to experiment with xs. The perl I have is 5.8.8, 18 > patches, AS build 822. Printing myconfig() shows that the compiler > used was cl and make used was nmake. > > However, I have MinGW. > > Question: to work out the example

RE: Windows PowerShell and .pl association

2007-09-23 Thread Jan Dubois
On Sun, 23 Sep 2007, Suresh Govindachar wrote: > > Hello, > > In the cmd.exe shell, I can run a .pl file by typing its name. > > However, in the new PowerShell, > > http://www.microsoft.com/technet/scriptcenter/topics/msh/download.mspx > > I need to prefix the .pl file with perl. Ho

RE: WMI Problem

2007-10-30 Thread Jan Dubois
On Mon, 29 Oct 2007, Steven Manross wrote: > I don't think Win32::OLE is strict safe. What makes you think that? > take out the. > > use strict; > > I tested it here on my systems, and it returned what I think you are > looking for (software titles that were installed on the remote system. A

RE: PPMs and Windows version specific DLLs

2007-11-09 Thread Jan Dubois
On Fri, 09 Nov 2007, Mark Dootson wrote: > I maintain some unofficial PPM's for wxPerl. It is now possible to > build the underlying wxWidgets DLL's with support for GDI+. > > For Windows versions 2000 and below, if you link against gdiplus you > should install gdiplus.dll to the application direct

RE: Start the browser as background process

2007-11-22 Thread Jan Dubois
On Thu, 22 Nov 2007, Kenneth Ölwing wrote: > > > system "\"C:\\Programme\\Internet Explorer\\iexplore.exe\" $website"; > > wait, until the browser window is closed. > Some: > > Look into Win32::Process (I believe it's called). The CreateProcess call > has flags to control this. > > Crude, but

ActivePerl 5.10 Build 1000 Beta release

2007-11-23 Thread Jan Dubois
ActiveState is pleased to announce ActivePerl 5.10.0 Build 1000 Beta, a beta release of the complete, ready-to-install Perl distribution for Windows, Mac OS X, Linux, Solaris, and AIX. This build is based on the first release candidate of the Perl 5.10 source code. Since Perl 5.10 is not yet comp

RE: ActivePerl 5.10 Build 1000 Beta release

2007-11-24 Thread Jan Dubois
On Fri, 23 Nov 2007, Sisyphus wrote: > > Installing from the zip package (by running Installer.bat): > > --- > . > . > Configuring PPM for use in C:\_32\ap1000... > > Syncing perl PPM database with .packlists...DBD::SQLite::db do failed: > column path is not unique(1)

RE: ActivePerl 5.10 Build 1000 Beta release

2007-11-25 Thread Jan Dubois
On Sun, 25 Nov 2007, Mark Dootson wrote: > > Installed on Win32 using MSI. > > No problems building Wx or its dependencies. Excellent! > Noticed that %INC is now effectively read only - so I need to read the delta. > > perl -V reports @INC order as > > lib > site\lib > > Is that intentional

RE: ActivePerl 5.10 Build 1000 Beta release

2007-11-27 Thread Jan Dubois
On Tue, 27 Nov 2007, David Moreno wrote: > On Mon, 2007-11-26 at 11:00 +0800, Foo JH wrote: > > Now if the final release will only come out before > > Christmas...hee hee > > That's Rafael's goal, AFAICT. There has been some chatter to time the 5.10 release to fall on the 20th anniversary of the P

RE: How to handle a find failure when examining an excel file

2007-11-27 Thread Jan Dubois
my $range = $Sheet->UsedRange->Find ({What => "ParentItemName", SearchDirection => xlNext, SearchOrder => xlByRows}); if ($range) { my $row = $range->Row; # . } Cheers, -Jan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Rousseau Sent: November 27, 2007 3:

ActivePerl 5.10.0 Build 1001 release

2007-12-18 Thread Jan Dubois
Perl 5.10.0 has been released today, the first in the 5.10.x major version series, after a five year long development process. Coincidentally today is also the 20th anniversary of the very first release of Perl 1 to the public. --

RE: Accessing WMI with localized Windows l10n

2007-12-20 Thread Jan Dubois
On Thu, 20 Dec 2007, Frank Pikelner wrote: > Hello, > > I wanted to ask the list whether anyone has any suggestions or sample > code for dealing with collecting information such as accounts and > groups from WMI with localized versions of Windows. > > I already have code to query and collect accoun

RE: perl 5.10 ActiveScript engine

2007-12-20 Thread Jan Dubois
On Thu, 20 Dec 2007, Michael Ellery wrote: > ..I just upgraded to 5.10 (uninstalled 5.8 and installed 5.10, actually) > and I can't seem to execute using the perl ActiveScript engine. For > instance, I try this simple script: > > > > use strict; > say "Hello World"; > > > > and try to ru

RE: Strange behavior with print

2007-12-27 Thread Jan Dubois
You need to change your file handle to binary mode to prevent the line ending transformations: binmode(STDOUT); Please read `perldoc -f binmode`. Cheers, -Jan > -Original Message- > From: [EMAIL PROTECTED] [mailto:perl-win32-users- > [EMAIL PROTECTED] On Behalf Of Bullock, Howard A

RE: Strange behavior with print

2007-12-28 Thread Jan Dubois
On Fri, 28 Dec 2007, Chris Wagner wrote: > It would be nice if there were a :text IO layer that would automatically > determine the new line sequence of a particular text file and do the > translation, or not, automatically. Currently u have to do an obnoxious > manual inspection of the file to kn

RE: perl 5.10 ActiveScript engine

2008-01-03 Thread Jan Dubois
On Thu, 03 Jan 2008, Michael Ellery wrote: > Jan Dubois wrote: > > I'll see that we can get this fixed ASAP. > > Any estimate when we might see a fix for this issue? Do you expect to > produce a new 5.10 build or just a patch to the current build? It is already fixed, jus

RE: Win32::OLE and VT_INT

2008-01-09 Thread Jan Dubois
On Wed, 09 Jan 2008, Michael Ellery wrote: > just running some quick COM code in perl and I notice this: if I call > a property or method that returns VT_I4, Win32::OLE maps that to a > perl integer in scalar context. When I call a property or method that > returns VT_INT, however, it gets mapped t

RE: Win32::OLE and VT_INT

2008-01-09 Thread Jan Dubois
On Wed, 09 Jan 2008, Michael Ellery wrote: > The VT_TYPE coming into my put_Some_VARIANT_Property was actually > VT_BSTR in this case, which I was not expecting. Simply wrapping int() > around the get call works fine, but a fix to Win32::OLE would be great. > > I think I'll also update my VARIANT p

RE: ActivePerl, PerlApp, Win-Mobile and AT&T Tilt

2008-01-17 Thread Jan Dubois
On Thu, 17 Jan 2008, Suresh Govindachar wrote: > Would appreciate any suggestions on getting perl scripts to run on > the AT&T Tilt phone with Windows Mobile 6 Professional > > http://www.htcwiki.com/page/ATT+TILT > > I am guessing that since java apps can be run on phones, it would be >

RE: [Fwd: storable and Win32::OLE::Variant]

2008-02-01 Thread Jan Dubois
On Fri, 01 Feb 2008, Kevin Beverly wrote: > i have an active state perl program that parses ms excel files for > loading into postgresql. > > i use > > use Win32::OLE::Const 'Microsoft Excel'; > use Win32::OLE::Variant; > > to get the dates as text from a spreadsheet. i store the data as an > ar

RE: properties, VT types, and Win32::OLE

2008-02-04 Thread Jan Dubois
On Mon, 04 Feb 2008, Michael Ellery wrote: > Given some object and a property: > > my $obj = new Win32::OLE("SOME.class"); > my $val = $obj->{SomeProperty}; > > ...is there some way to determine the VT type of $val (or of > SomeProperty, equivalently). I often run into strange problems where I > ex

RE: Question: DLL and Intra Process Communication methods

2008-02-07 Thread Jan Dubois
You could try using the PerlEz.dll, part of ActivePerl. It allows you to easily create Perl interpreter from insider another application. Read `perldoc perlez` or on the web at e.g. http://aspn.activestate.com/ASPN/docs/ActivePerl/5.10/Components/Windows/PerlEz.html Cheers, -Jan Fro

RE: [Fwd: storable and Win32::OLE::Variant]

2008-02-07 Thread Jan Dubois
On Thu, 07 Feb 2008, Kevin Beverly wrote: > h for some reason, i thought that "use Win32::OLE::Variant" > did stringify Win32::OLE::Variant objects. my understanding now is > that it just makes these display correctly if they are dates. > > i am a newbie to Win32::OLE::Variant. > > could yo

RE: Win32::OLE and hidden methods

2008-02-13 Thread Jan Dubois
On Wed, 13 Feb 2008, Michael Ellery wrote: > Can Win32::OLE access methods/props marked as hidden in the IDL? There > happens to be one property we have marked as such and I tried the > naive thing: > > my $secret = $object->HiddenProperty > > ...and it was rejected. Is there some way to ask Win32:

2008 Winter Scripting Games have begun

2008-02-17 Thread Jan Dubois
Microsoft is running the 3rd annual Scripting Games competition, and this year they added a Perl division alongside VBScript and Windows PowerShell: http://www.microsoft.com/technet/scriptcenter/funzone/games/default.mspx The games have already begun on Friday, but the deadline for the first 2

My first 2 Scripting Games commentaries are online now

2008-02-20 Thread Jan Dubois
Feel free to check them out, even if you are not taking part in the Games, and let me know what you think: http://www.microsoft.com/technet/scriptcenter/funzone/games/games08/experts.mspx I have solutions for all 10 events, but I haven't written all the write-ups yet. So any feedback on the s

RE: My first 2 Scripting Games commentaries are online now

2008-02-20 Thread Jan Dubois
Had I known that you guys are commenting more on my picture than on my sample code and commentary, then I would have spent more than the 5 minutes to find any old picture with a reasonable background and crop just a head-shot out of it. Or maybe I should have sent the picture that was for quite a

RE: MSVCR71.dll error in ActivePerl-5.10.0.1002-MSWin32-x86-283697.msi

2008-02-25 Thread Jan Dubois
On Mon, 25 Feb 2008, Chris O wrote: > FYI, there appears to be a problem with the latest active perl release > (ActivePerl-5.10.0.1002-MSWin32-x86-283697.msi). After installation, > when I try to use any DBI related module, perl crashes and windows > displays the error "this application has failed

RE: MSVCR71.dll error in ActivePerl-5.10.0.1002-MSWin32-x86-283697.msi

2008-02-26 Thread Jan Dubois
On Tue, 26 Feb 2008, Chris O wrote: > > Does installing msvcr71.dll (into one of your "path" folders) fix > > the problem ? Rob > > It appears to be a library issue at compile. Jan mentioned that dbd- > odbc makes reference to msvcr71.dll. He's working on it. The dll is > installed on the machine i

RE: MSVCR71.dll error in ActivePerl-5.10.0.1002-MSWin32-x86-283697.msi

2008-02-28 Thread Jan Dubois
On Thu, 28 Feb 2008, Sisyphus wrote: > From: "Jan Dubois" <[EMAIL PROTECTED]> > > I'll probably post a script later that will search a Perl tree for modules > > with references to MSVCR71, so you can uninstall and reinstall them if you > > want to. &g

RE: Not all functions are exported by the perl dll

2008-03-02 Thread Jan Dubois
On Sun, 02 Mar 2008, Sisyphus wrote: > Hi, > Some time back I asked about the inability of XS to access > Perl_report_uninit() on Win32 ... though the function is accessible from > XSubs on linux. Jan Dubois explained thus: > > --- quote --- > "..Perl_report_uninit() is

RE: Not all functions are exported by the perl dll

2008-03-03 Thread Jan Dubois
On Sun, 02 Mar 2008, Sisyphus wrote: > Thanks for the explanation. > It seems that the goal posts were moved with the release of perl 5.10 - a > number of functions that were private in perl 5.8 are now apparently public. > > For example, Data-Alias-1.07 fails to build on perl 5.8 (Windows and AIX

2008 Winter Scripting Games are over now

2008-03-03 Thread Jan Dubois
You can now read *all* my commentaries on all the events by following the "Perl Guest Commentator" links on the "Advanced Events" page: http://www.microsoft.com/technet/scriptcenter/funzone/games/games08/advanced.mspx If you are at all interested in the PowerShell solutions, then I would recommen

RE: Not all functions are exported by the perl dll

2008-03-03 Thread Jan Dubois
On Mon, 03 Mar 2008, Sisyphus wrote: > Alias.xs defines PERL_CORE (but not PERL_EXT). I gather that PERL_CORE is > also switching on access to those functions. (The changes mentioned in the > above two links involve both PERL_CORE and PERL_EXT.) PERL_CORE is a superset: everything is visible when

RE: Not all functions are exported by the perl dll

2008-03-07 Thread Jan Dubois
On Thu, 06 Mar 2008, Sisyphus wrote: > > PERL_CORE is a superset: everything is visible when you define PERL_CORE > > (but may still not be linkable if your code isn't statically linked into > > the core). PERL_EXT exposes fewer symbols, but all symbols those symbols > > are always available under

RE: rsync for Win32

2008-03-10 Thread Jan Dubois
On Mon, 10 Mar 2008, Sisyphus wrote: > > I couldn't find a Cygwin version of rsync under Cygwin's Setup.exe (though > it wouldn't surprise me if such a beast existred). Look harder! rsync is listed in setup.exe, and it does work to access the Perl5 repository. I always run with CYGWIN=nontsec;

RE: Can a Perl script be called as a COM object?

2008-04-01 Thread Jan Dubois
On Tue, 01 Apr 2008, Howard Maher wrote: > One of our possible vendors said that if Perl scripts can be callable > COM objects, then we can interface with their engine. Does anyone know > whether Perl scripts can be? The languages that they suggest are VB6, > C++, and .NET... Perl code can be wrap

RE: win32 service application (like google desktop)

2008-04-02 Thread Jan Dubois
Check out the PerlTray utility in the Perl Dev Kit it does all the things you are looking for: http://aspn.activestate.com/ASPN/docs/PDK/7.1/PerlTray.html Download a trial version and look at the PerlTray sample programs. http://www.activestate.com/Products/perl_dev_kit/index.m

RE: perl tray

2008-04-03 Thread Jan Dubois
On Thu, 03 Apr 2008, Spencer Chase wrote: > My interest was provoked by the discussion of perl tray so I thought I > would see what it did since I have had it in dev kit for years. I > installed slash tray as a test not having read the script. How do I > get rid of it? I don't want to learn all abo

RE: win32 service application (like google desktop)

2008-04-03 Thread Jan Dubois
/wxperl/ Cheers, -Jan From: Edward Peschko [mailto:[EMAIL PROTECTED] Sent: April 3, 2008 10:43 AM To: Foo JH Cc: Jan Dubois; Perl-Win32-Users@listserv.activestate.com Subject: Re: win32 service application (like google desktop) wow, this is cool.. Just one more question.. If I am going

ANNOUNCE: ActiveState Perl Dev Kit 7.2 released

2008-04-07 Thread Jan Dubois
ActiveState is pleased to announce the release of Perl Dev Kit 7.2, the essential tool suite for Perl developers that facilitates the creation and deployment of professional Perl applications. ActiveState Perl Dev Kit 7.2 contains fixes and Perl 5.10 support for PerlNET as well as some other bug f

RE: command line debugger and activestate perl-5.10

2008-04-07 Thread Jan Dubois
You should get the commandline debugger if you switch the PDK debugger to “remote” mode and remove the PERLDB_OPTS environment variable: pdkdebug --remote set PERLDB_OPTS= perl –d myprog.pl Cheers, -Jan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed

RE: Win32::Process::Create

2008-04-28 Thread Jan Dubois
On Mon, 28 Apr 2008, Michael Ellery wrote: > > ..I use this function pretty regularly to spawn procs on windows, but > I've often wanted to minimize the console or main window that was > launched. Does anyone know how to do this? In the corresponding WIN32 > API, there is a STARTUPINFO structure

RE: Win32::Process::Create

2008-04-29 Thread Jan Dubois
On Tue, 29 Apr 2008, Shuttlesworth, James wrote: > > I was/am also having this problem, but generally ignored having the > window- I can say for my part I do normally use backticks for most > things, but I use win32process when I want more control over the > process, for instance I want it to run

RE: Request help in compilation of IO::Tty module

2008-05-14 Thread Jan Dubois
You cannot use IO::Tty with regular Perl on Windows because Windows doesn't use pseudo-terminals. The only way to get this working on Windows is by using the Cygwin Unix emulation libraries (and Cygwin perl). Cheers, -Jan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

RE: draw boxes around tablular data ???

2008-05-16 Thread Jan Dubois
On Fri, 16 May 2008, Mike Schleif wrote: > > We are tasked to do several database queries, process a volume of text, > generate several textual reports, and send production orders to a > printer. > > All of the above is functionally complete. > > However, the customer wants the printed productio

RE: controlling Winamp

2008-05-16 Thread Jan Dubois
On Fri, 16 May 2008, Jon Bjornstad wrote: > I launch CLAmp.exe with a system() from my script. It is the DOS > window that results from the system() that I am trying to > control/eliminate. Try calling Win32::SetChildShowWindow(0); before your system() call. See `perldoc Win32` for more det

ActivePerl 5.10.0 Build 1003 released

2008-05-16 Thread Jan Dubois
ActiveState is pleased to announce ActivePerl 5.10.0 Build 1003, a complete, ready-to-install Perl distribution for Windows, Mac OS X, Linux, Solaris, and AIX. This build is based on the release version of Perl 5.10.0. For detailed information or to download this release, see: http://www.activ

RE: ActivePerl 5.10.0 Build 1003 released

2008-05-20 Thread Jan Dubois
On Sun, 18 May 2008, Sisyphus wrote: > On Sat, 17 May 2008, "Jan Dubois" <[EMAIL PROTECTED]> wrote: > > ActiveState is pleased to announce ActivePerl 5.10.0 Build 1003 > > There's a minor nit with building modules on this build of perl. If > Math::BigIn

RE: UInt32 cast as SInt32

2008-05-23 Thread Jan Dubois
This is really just missing functionality in the Win32::OLE module. Some older Microsoft documentation claimed that only VT_UI1 was valid inside a VARIANTARG, but not VT_UI2, VT_UI4 etc. Same thing for VT_INT and VT_UINT. Therefore Win32::OLE doesn't support them. I've checked the current doc

RE: Win32::OLE -- assignment to property of type IUnknown..how?

2008-05-28 Thread Jan Dubois
On Wed, 28 May 2008, Michael Ellery wrote: > > I have a COM component with a property defined like this (IDL): > > [propput, id(30), helpstring("property TestSuite")] HRESULT > TestSuite([in] IUnknown *pVal); Try adding a second line here: [propputref, id(30), helpstring("property TestSuite")

RE: common registry entries

2008-06-08 Thread Jan Dubois
I think Win32::GetFolderPath() may be hat you are looking for. `perldoc Win32` has all the details. Cheers, -Jan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edward Peschko Sent: June 8, 2008 12:26 PM To: perl-win32-users@listserv.activestate.com Subject: common registr

RE: OLE Events and STDIN

2008-06-13 Thread Jan Dubois
On Fri, 13 Jun 2008, Michael Ellery wrote: > > I would like to accept OLE Events in my script - I've written working > code that successfully receives events. Now I want to also receive > some console (stdin) input. I typically use Term::Readline for this, > although I'm happy to try something else

RE: OLE Events and STDIN

2008-06-13 Thread Jan Dubois
On Fri, 13 Jun 2008, Michael Ellery wrote: > Jan Dubois wrote: > > In general it would be better to provide a GUI for your input, using > > Tk, Tkx, Win32::GUI, wxPerl etc. which would avoid the problem > > altogether. > > It's been a long time since I've tri

RE: Unable to find Date::Calc in the ActiveState Package Repository

2008-06-16 Thread Jan Dubois
On Sun, 15 Jun 2008, Sisyphus wrote: > I think that ActiveState generally don't provide ppm packages of > modules that ship with ActivePerl - and Date::Calc comes as standard > with ActivePerl. (At least it does with build 1003 - I'm assuming the > same holds for build 1002.) No, Date::Calc (and a

RE: Where are msoEncodingUTF8 and other msoEncodings?

2008-06-17 Thread Jan Dubois
On Tue, 17 Jun 2008, Ben Bullock wrote: > Dear Perl Win32 mailing list users, > > I am looking for the value of msoEncodingUTF8 but can't seem to find > how to pull it in using Win32::OLE::Const. I only found one useful- > looking page on the web, > > http://aspn.activestate.com/ASPN/Mail/Message/p

<    1   2   3   4   5   >