Home>Article>Backend Development> About the usage of FormatMessage

About the usage of FormatMessage

巴扎黑
巴扎黑 Original
2017-06-12 14:30:09 1753browse

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

About the usage of FormatMessage

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn