+ Reply to Thread
Results 1 to 6 of 6

Thread: FormatMessage

  1. #1

    Default FormatMessage

    Hi.

    In the NewsArchive a reply on 02-24-2009, 09:42 AM

    Hi Arnór,

    >> %_SB_RETURNEX% gives you all you need now.
    >
    > Would it be possible to have something like %_SB_ERROR_TEXT% that returned
    > the value of FormatMessage() for the %_SB_RETURNEX% ?

    I have added a new "Get System Error Text..." function to SetupBuilder 7 to
    get the text description of a Windows error number.

    Friedrich
    I have tried to find this function but I am not able to find something like this. For now I will try the example file (in sb6) from the same thread. But has this function slipped out somehow (or more possible just me being blind)

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: FormatMessage

    Allan,

    That was in one of the first SB7 alpha releases four years ago and we removed it (function did not make sense). It did not make it into the Gold version (beta tester poll voted against it).

    Friedrich

  3. #3

    Default Re: FormatMessage

    Okay.

    I have use the kernel32.dll call instead, so the error can be written to a log file.

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: FormatMessage

    Allan,

    New "Handle String Operation (Format System Message)..." Operation added. Thank you for your suggestion.

    Friedrich
    Attached Images Attached Images   

  5. #5

    Default Re: FormatMessage

    Now that's excellent!

    Thanks

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: FormatMessage



    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •