PDA

View Full Version : FormatMessage



Allan Greis Eriksen
07-09-2013, 06:33 AM
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)

linder
07-09-2013, 06:45 AM
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

Allan Greis Eriksen
07-09-2013, 06:52 AM
Okay.

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

linder
07-10-2013, 03:03 AM
Allan,

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

Friedrich

Allan Greis Eriksen
07-10-2013, 04:38 AM
Now that's excellent!

Thanks :)

linder
07-10-2013, 04:45 AM
:)

Friedrich