Dear Monks:

A VB programmer wants me to write a Perl script which signals his program that I have just completed inserting a record into a database. I think I could alert him through a socket but he wants to do it through Windows calls and has sent me this:

My interfaces to slot systems use the following API's for IPC: CallWindowProc CopyMemory GetDesktopWindow GetWindow GetWindowText SendMessage SetWindowLong The process is: SetWindowLong to trap windows messages in your message handler. Send a message: GetDesktopWindow for the topmost window handle. Loop until found GetWindowText to see the window caption If destination window is found, CopyMemory to build a byte array (it's a VB convolution) SendMessage to the window end if GetWindow for next window in chain loop To receive messages: CopyMemory in your message handler to access the text. (This may +be a VB thing, also) CallWindowProc to resume message processing SetWindowLong to unhook your program from windows messages. I hope this is helpful. If you haven't called API's from VB, it may s +eem like unnecessary steps are performed. That's because some C++ da +tatypes are not present in VB.

I will withhold comment.

Anyone know of a Perl Module thta implements this of should I just tell him to get with the program and open a listen socket for me.

Thankx!
Gary

In reply to Win 32 APIs for IPC (Perl to/from VB) by gary kuipers

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.