Coming soon..
:: Abstract ::
When writing your own functions, quite often you’d return 1 for success and 0 for failure. The reason for this is that programmers often make function calls inside the brackets of a conditional statement, such as
char c;
scanf( "%c", &c );
if( isdigit(c) )
printf( "You entered the digit %c\n", c );
So don’t you think returning 1 for success and 0 for failure is quite reasonable?
If that is what you think, then why do most C\C++ literatures out there return 0 back to the OS in main() even in a very simple “Hello World” program?
Is it trying to tell the OS that a failure has occurred?
I doubt it, and this article explains why.
Continue reading »
:: Abstract ::
This article explains the steps needed to successfully installing DirectShow SDK into Microsoft Windows on the desktop. It guides you all the way from obtaining and installing the required SDKs, to configuring the environment, and finally, building a DirectShow application to verify the installation of the SDK.
:: Prerequisite ::
The environment that this article was based on was Visual Studio 2005 with Microsoft XP SP2.