[rt.cpan.org #63882] Problem with tk_getopenfile and Win32::OLE::Const

[email protected] ("Jan Dubois via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Mon Dec 13 20:14:10 2010: Request 63882 was acted upon.
Transaction: Correspondence added by JDB
       Queue: Win32-OLE
     Subject: Problem with tk_getopenfile and Win32::OLE::Const
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=63882 >


The standard file dialogs in Windows only work in single threaded
apartment mode, so you have to include the following line immediately
after the "use Win32::OLE" line before doing any OLE operations:

BEGIN { Win32::OLE->Initialize(Win32::OLE::COINIT_OLEINITIALIZE) }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.