in reply to Prototype problem for XS module

Not an answer to your XS problem, but ActiveState Perl comes with the message box call built-in. Try this:

perl -MWin32 -E"say'The man, he say: ',Win32::MsgBox('Is this what you + are after?',4,'Just a question')==6 ?'yes':'no'"

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: Prototype problem for XS module
by chessgui (Scribe) on Feb 05, 2012 at 17:46 UTC
    Thanks a lot. I used to be an ActiveState customer. Recently I switched to Strawberry since it seemed (and later proved) to be more capable of installing CPAN modules. However I feel more and more that the functionality of even CPAN modules is limited when it comes to interfaces to Windows API. (For example in the Win32::GUI module when I speak to the System Tray a bubble pops up which makes a noise - I don't want this noise). Ceterum censeo there is a need to do it myself and make API calls directly through XS code.
      Thanks a lot. I used to be an ActiveState customer. Recently I switched to Strawberry

      Well, Win32 is a CPAN module too.

      (For example in the Win32::GUI module when I speak to the System Tray a bubble pops up which makes a noise - I don't want this noise).

      The audible alert is a OS user interface feature, not an application feature. That is, a windows user can elect to turn off audible alerts -- it's about the first thing I do when I do a new install -- or not. But it is, and should be, the application users choice to have audible alerts, not the application writers.

      Ceterum censeo there is a need to do it myself and make API calls directly through XS code.

      Learning XS is not a bad thing to do. Though you may well find it a frustrating exercise.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        There is an open source application called notifu which is a command line tool for creating notifications in the system tray. This application has a '/q' option which disables the sound when the balloon pops up (I tested this). So it must be possible somehow (for exactly how I should try to understand the source code) to disable sound on a per message basis.