in reply to Re: Win32::GUI MessageBox
in thread Win32::GUI MessageBox

OK, thanks for your help, but I'm confused on two things you mentioned.

First, you say that there is no mention of "MessageBox" in the Win32::GUI documentation. When I installed the Win32::GUI module, It installed a HTML file called Win32::GUI::Reference::Methods - Common Methods This file tells me directly how to use the MessageBox command. It also states, that when using MB_SERVICE_NOTIFICATION I should leave the hWnd (or Handle) off. I didn't have to modify the package (and with my programming skills, I wouldn't want to attempt it).

Secondly, I installed the Win32::API module to try your sample code and I could not get it to work. I am unable to find the protocol.pm. I have looked in PPM & CPAN but have not found it.

I do realize that it's probably something simple that I've overlooked, however this too I can learn and one day I may eventually evolve into a good programmer.

Thanks.

Replies are listed 'Best First'.
Re^3: Win32::GUI MessageBox
by BrowserUk (Patriarch) on Oct 18, 2006 at 15:12 UTC

    I actually said:

    Since there is no mention of "MessageBox" in any of the packages Perl sources,

    I grepped the source files (*.pm/*.pl). As the document you mention is .pod, it was not found.

    When I try to use the htmlised docs for Win32::GUI, all the links are dead ends producing:

    You tried to access the address file://localhost/c:/perl/html/TEMP/Win +32-GUI-1-1300-1139047283/blib/html/site/lib/Win32/GUI/Reference/Metho +ds.html, which is currently unavailable.

    which means that I did not see the info you've cited.

    There's probably some magical invokation of some obscure AS module that isn't documented, that would cause those .pod files to be htmlised and linked properly, but I am not aware of it.

    And when I try getting to it from the cpan docs I get

    Not found Whatever it was you were looking for, it's not here. This may be due t +o... You made a typo in the URL What you are looking for no longer exists on CPAN

    If CPAN doesn't know how to treat .pod files, I'm not surprised that I don't.

    Having an optional first parameter on a method seems a little obscure?

    A quick check with PPM finds Win32::API::Prototype:

    ppm> search Win32::API::Prototype Searching in Active Repositories 1. Roth [http://www.roth.net/perl/packages/] Win32-API-Prototype [0. +2002.12.17] Roth Consulting (http://www.roth.net/) ppm>

    Google turns up many similar pointers.

    There is a Win32::API mechanism similar to Win32::API::Protoype::ApiLink(), namely Win32::API->Import(), hence I linked to that module, but I've found the former less buggy.

    Glad you found your solution.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Ahh perfect, I did not have the ROTH repository in my PPM entries. After that addition, I found prototype quite easily.

      Your solution works perfectly now. Thank you

      You are an "Archbishop" among "Archbishops"