Home >Backend Development >C#.Net Tutorial >About the usage of FormatMessage
FormatMessage is an API provided by WINDOWS. It is used to obtain the text information corresponding to the error code returned when calling the Windows API. It has been used in VB before, but it has not been used in C#, mainly because I don’t know much about the Windows API. Some rules for calling in C#. Recently, I suddenly became very interested in developing mobile phone programs with VC++ WIN32. I picked up C++ that I had not used for a long time. Of course, I needed to deal with Windows API frequently. I wrote a lot of C#, and I was not used to using VB, so I This method is called under C#. Why not use it directly in C++? Well, debugging on mobile phones is troublesome, and I don’t want to write too much code. C# is still much more convenient and faster to use. DWORD WINAPI FormatMessage( in
1. Detailed introduction to calling FormatMessage API in C
Introduction: FormatMessage is an API provided by WINDOWS. It is used to obtain the text information corresponding to the error code returned when calling the Windows API. It has been used in VB before, but it has not been used in C#, mainly because I don’t know Windows well. Some rules for API calling in C#. Recently, I suddenly became very interested in developing mobile phone programs using VC++ WIN32. I picked up the C++ that I had not used for a long time. Of course, I needed to deal with the Windows API frequently. I wrote a lot of C#, and then I used VB to have
[Related Q&A recommendations]:
The above is the detailed content of About the usage of FormatMessage. For more information, please follow other related articles on the PHP Chinese website!