Announcement

Collapse
No announcement yet.

Bringing up Windows error messages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bringing up Windows error messages

    This is more curiosity on my part, not something I have a desparate need for, but is there a way to "fake out" Windows and bring up various messages and dialogs that can appear, say the non-Windows approved software installation message/dialog? Something similar to testing ones PBWin error routines by setting your own error. I'm looking for an easy way to get some screen shots for a manual.

    CH

  • #2
    See the FormatMessage() Windows API function, along with the Error codes in your WIn32API.INC file.

    You should be able to write a little program something like...
    Code:
     
    FOR Z = Low_win_err_msg TO HI_win_err_msg
        FormatMessage (Z) ...szMSG 
        MSGBOX szMSg
        (print screen here) 
    NEXT
    Or even, DO...LOOP with an INPUTBOX$ to prompt for "Windows Error code number" if there are only a few such codes in which you have an interest.

    MCM
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Or even RunTime Debug and Error Handling Part I - Find that elusive bug
      From the source-Code forum

      http://www.powerbasic.com/support/pbforums/showthread.php?t=38624

      Still a work in progress, but usable
      Last edited by Cliff Nichols; 12 Jan 2009, 08:30 PM.
      Engineer's Motto: If it aint broke take it apart and fix it

      "If at 1st you don't succeed... call it version 1.0"

      "Half of Programming is coding"....."The other 90% is DEBUGGING"

      "Document my code????" .... "WHYYY??? do you think they call it CODE? "

      Comment


      • #4
        Thanks! There are certainly more Windows messages than I've actually ever seen come up.

        Comment


        • #5
          ! There are certainly more Windows messages than I've actually ever seen come up.
          Stay tuned. Program long enough you'll see 'em all; seldom will that occur only when you ask.
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment

          Working...
          X