Git Product home page Git Product logo

win32-ole's Introduction

The Win32::OLE module provides OLE Automation capabilities to Perl.
It is based on the OLE module distributed by ActiveState with
their "Perl for Win32" port of Perl 5.003_07. Win32::OLE replaces
the older OLE module, which is now considered obsolete. Win32::OLE
is already included in the ActivePerl binary distribution.

This module is compatible with Perl 5.004_01 and above. Compilation
requires either Microsoft Visual C++ 4.2b or later, or Borland C++
version 4.02 or above.

Do:

   perl Makefile.PL
   $make
   $make test
   $make install

where $make is either "nmake" or "dmake".

See the pod documentation for details of usage.

The file NEWS.pod contains a history of user visible changes against the
previous version.

***WARNING*** This version of the module contains ALPHA level support for
OLE events. This support doesn't work yet for some OLE controls and the
user interface is still subject to change!

win32-ole's People

Contributors

bentglasstube avatar bingos avatar chorny avatar dsteinbrunner avatar jandubois avatar naitaku avatar tzccinct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

win32-ole's Issues

Timeout or break in MessageLoop [RT #15538]

This is addressed in RT issue [https://rt.cpan.org/Public/Bug/Display.html?id=15538] - essentially, there are times when the automation object can't be trusted to send any more events, and that leaves us stranded in MessageLoop with no way to time out.

A cheap and easy way to implement an optional break-out would simply be to pass a closure in, and call it with call_sv on every trip through the loop. I feel like that would maybe call the closure too often, but I have no feel for how that would be decided or measured. It would, however, be easy. You wouldn't even have to monitor any return - the callback could simply QuitMessageLoop if that's what was appropriate.

I'm going to code this in the next day or two unless somebody tells me it's stupid. I'm pretty sure Windows will regulate how often the message loop gets called, in other words, that tight loop isn't actually using any meaningful system resources except what it costs to run a Perl function in the first place.

The alternative would be to do a SetTimer and trap the WM_TIMER; then, however, QuitMessageLoop would probably need to kill the timer. That feels as though it would be a leak risk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.