I've created this program as a part of a project 'Image Enhancer'. This Program can be used to check whether the given file is a valid BMP file or not. Just compile the source code and enter the absolute file path in the prompt. (Ex-c:\test\text.bmp)
//Checking and validation of an BMP ImageFile
#include<>
#include<>
#include<>
#include<>
#include<>
#include<>
#include<>
#define BMPTYPE (((WORD) 'M' << must="="'BM'" ex="c:\tc\text.bmp):" length =" strlen(inname);" i =" 0;">= 'a') && (inname[i] <= 'z')){
inname[i] = toupper(inname[i]);
}
}
//fpath=inname;
FILE *infp;
//strcpy( inname, argv[1]);
infp = fopen( inname, "r");
if( ! infp)
{
printf("\n Unable to open %s for input\n", inname);
printf("Try again..");
getch();
//main();
// exit(1);
}
printf("Verifying file....");
delay(1000);
bmp(infp);
fclose(infp);
printf("\nPress any key to exit\n");
getch();
// exit(0);
}
Thursday, April 2, 2009
Subscribe to:
Comments (Atom)
Popular Posts
-
Yesterday I got a chance to capture the transit of International Space Station. The iridium flare was too faint due to the light pollution i...
-
Some times when you connect to the webhost via FileZilla you may encounter this error message. "421 Sorry, cleartext sessions are ...
-
When adding a fancybox popup you may encounter a common issue, which shows the below error message, while clicking the link. "Th...
-
DivX Crawler is the first and most reliable source for Direct Download Movies, Software and Music Videos. Username : divx273 Password : 8...
-
Here is the working script for PHP Mailer in GoDaddy Hosting, include("includes/class.phpmailer.php"); date_default_timez...
-
1. Toggl Toggle is a great time tracking tool that helps you keep track of your time during projects. It is mostly a web app, however it has...
-
The Peach Design Praline En Schachtel Douglas Menezes BAD Health Narfstuff – Web and Graphic Design Meomi Cochemer Stadtsoldaten...
-
(conceptual design) New version of my SMS software is currently on development which has a lot more features than the ...
-
1. TinyMCE TinyMCE is an open source (under the GNU Lesser General Public License ) rich-text editor released and maintained by Moxiecode...
-
Here is a simple way to generate a signed request for diferent services using AWS: /// AWS API keys $aws_access_key_id = 'your-aws...