RE: Win32-API aborting mid-application

2007-05-31 Thread Adam R. Frielink
> -Original Message- > From: Bill Luebkert > > > > So, my DEVMODE is a defines as > > > > DEVMODE * FAR *mode > > > > How does one unpack a double pointer to a struct? > > I would assume define it as a ptr: > my $mode = pack 'P', 0; > > And then you would need to do something

Re: Win32-API aborting mid-application

2007-05-30 Thread Bill Luebkert
Adam R. Frielink wrote: > >> >>my $mode = pack 'C148', 0 x 180; # I padded 32 just in case I meant that 148 to also be 180 for safety (in case the actual structure was longer - usually you would supply a size arg in a structure that is returned as the only in/out arg, but apparently not her

RE: Win32-API aborting mid-application

2007-05-30 Thread Adam R. Frielink
> -Original Message- > From: Bill Luebkert > > Adam R. Frielink wrote: > > > > The particular section of code in which the error occurs is: > > > > ___CODE___ > > my $PEGetSelectedPrinter = new Win32::API 'crpe32', > > 'PEGetSelectedPrinter', 'IlPlPlPP', 'I'; > > if (not defined $PEGe

Re: Win32-API aborting mid-application

2007-05-29 Thread Bill Luebkert
Adam R. Frielink wrote: > I have hit a road block using the Win32-API module. I've gotten a > working tool which allows me to modify the contents of the Crystal > Reports RPT file in memory using the API interface. Unfortunately, > everytime I attempt to access a particular method, my application

Win32-API aborting mid-application

2007-05-29 Thread Adam R. Frielink
I have hit a road block using the Win32-API module. I've gotten a working tool which allows me to modify the contents of the Crystal Reports RPT file in memory using the API interface. Unfortunately, everytime I attempt to access a particular method, my application fails with a very non-specific