Reputation: 1697
I am developping a small program based on the .Net framework 4 and by using the C# language.
I am using a .Net library which itself uses functions from the AVIFile Windows API.
I have got an error when using the AVIStreamRead function.
Here is the MSDN documentation for the AVIStreamRead function :
http://msdn.microsoft.com/en-us/library/windows/desktop/dd756849(v=vs.85).aspx
I want to get more information about my error from the result integer value.
The documentation page lists the three following return codes :
But where do I get the corresponding integer values ?
Upvotes: 0
Views: 612
Reputation: 709
Yo can get them from Vfw.h.
#define AVIERR_UNSUPPORTED MAKE_AVIERR(101)
#define AVIERR_BADFORMAT MAKE_AVIERR(102)
#define AVIERR_MEMORY MAKE_AVIERR(103)
#define AVIERR_INTERNAL MAKE_AVIERR(104)
...
To convert SCODE to error code you can use
WORD SCODE_CODE(SCODE sc);
Upvotes: 2