Announcement

Collapse
No announcement yet.

Bringing up Windows error messages

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

  • Michael Mattias
    replied
    ! 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.

    Leave a comment:


  • Conrad Hoffman
    replied
    Thanks! There are certainly more Windows messages than I've actually ever seen come up.

    Leave a comment:


  • Cliff Nichols
    replied
    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, 07:30 PM.

    Leave a comment:


  • Michael Mattias
    replied
    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

    Leave a comment:


  • Conrad Hoffman
    started a topic Bringing up Windows error messages

    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
Working...
X