Important alert: (current site time 7/15/2013 6:46:30 PM EDT)
 

winzip icon

A Paint Utility to Create BMP - for DOS

Email
Submitted on: 2/28/2000
By: Uma Maheshwaran S.  
Level: Intermediate
User Rating: By 26 Users
Compatibility: C, C++ (general)
Views: 44878
(About the author)
 
     This paint utility is similar to the Paint we have in windows Accessories, but with a limited functions. But this paint can be executed in Dos Environment without the support of Windows. This is not a master piece application in this kind, but I have tried to simulate the windows controls, menus, popups, and GUIs in the simple C graphics functions. You will definitely find the Interface of this application quite interesting with Icons, Menus, Message Boxes etc. and these functions and procedures can be reused for any of your application in which you may want to add some GUI interface. This is fully Mouse Driven. Other feature is the Image that you create using this application is compatible to the Windows Paint UTILITY - that is you will get the ACtual BMP which will be recognised as BMP by any other applications.(like word etc). Please Vote High, if you find it worth enough.

 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//INCLUDE files for :A Paint Utility to Create BMP - for DOS
//**************************************
standard c include files like graphics.h etc.
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

4/10/2000 10:07:38 PMNeeo

Hey,
THis might be a dumb question yet What version of C are you using??? I am using MS VC++ and well as you said standard???
(If this comment was disrespectful, please report it.)

 
4/15/2000 12:50:14 AMNeeo

I tried compiling it in Turbo C 2.01 and I get errors still any one got any ideas do I need to change the compiling format?
(If this comment was disrespectful, please report it.)

 
5/7/2000 2:53:14 PMsuperb!

hello i must first congratulate u on this excllent code. i struggled to make paint brush in vb6.0. my friend told me to make in c and i said it was impossible.. but this code made my UMA it is just fantabulous.... uma .. if u can just email me.. i want to personally congratulate you.. i really mean it!
i showed to code to my friends and they too were just amazed at the code..
keep it up uma!!!!!
(If this comment was disrespectful, please report it.)

 
9/6/2000 3:23:54 AMNicole

I simply must congratulate u on
this code. I tried to make
paintbrush in C++ to no avail. Can't believe you did it in C. Keep it up!
(If this comment was disrespectful, please report it.)

 
10/25/2000 6:46:05 AMshahbaz humayun

i have a problem to executing this code
(If this comment was disrespectful, please report it.)

 
10/25/2000 6:48:16 AMshahbaz humayun

hello friend i have problem to execute this code the error come graphics not initialized and undefined object 0.asm and a linker erroe whuch i cant understand
please e mail me full answer
thanks
(If this comment was disrespectful, please report it.)

 
11/27/2000 1:33:18 PMNikki

Good work.
(If this comment was disrespectful, please report it.)

 
5/4/2001 7:55:34 AMSameer Potdar

What are the ICN files ? In which Utility r they created .?


(If this comment was disrespectful, please report it.)

 
5/22/2001 5:11:18 AMsneha

hello Uma,
(If this comment was disrespectful, please report it.)

 
5/22/2001 5:14:42 AMsneha

hey Uma, I am having problems executing this code can u please help me in it!! i m getting and error which says BGI graphics not supported!1 what do i do?? please tell me what shud i do!!
(If this comment was disrespectful, please report it.)

 
6/21/2001 9:44:06 AMSergio

Which C compiler have you used to write it? I write code with MS C 6.00, I maybe interested to hire you as a remote consultant, are you interested?
scometto@libero.it
sergiocometto@aol.com
(If this comment was disrespectful, please report it.)

 
6/21/2001 9:46:20 AMsergio

Hello Uma,
which C compiler have you used?
I work with MS C 6.00 (DOS) are you interested on some form of cooperation or consulting?

(If this comment was disrespectful, please report it.)

 
7/10/2001 12:54:00 PMNick

Can anyone tell me how to overcome the BGI graphics not initialized error? It's driving me insane!
(If this comment was disrespectful, please report it.)

 
9/22/2001 9:26:44 PMatomicgerbil

i try to compile and it says it needs graphics.h and it doesnt exist. I also get a BGI Error: Graphics not initialized (use 'initgraph').
(If this comment was disrespectful, please report it.)

 
11/11/2001 6:38:32 PMPURE_POWER

Hi,
nice work on ur paint program.
Im also doing something similar, its a GUI/OS similar to ur interface (a little better tho) heh sorry ur windows,buttons,menus and font dont quite cut it, and u dont support the standard windows right click menu.
My GUI/OS is a graphical replica of win95 made in C using DJGPP and ALLEGRO.
If u or anyone else is interested in this plz email me Carrizzma_nz@yahoo.com
congrats again,

(If this comment was disrespectful, please report it.)

 
3/3/2002 6:42:38 AMAmul

i m unable to download any codes form this site .... pls let me know about the reason .
(If this comment was disrespectful, please report it.)

 
4/6/2002 10:50:57 AMjacob john

Sir...
This is about the code of Paint Shop 1.0 that u published on planet-source-code.com

On executing paint.exe i got an error like this
"BGI error:Graphics not initialized (use 'initgraph')
On compiling the code i get an error message like this
"Linker error : Undefined sumbol _main in module c0.asm"
What are the ICN files ? In which
Utility r they created .?

So please give me instructions to make me run this code.....

(If this comment was disrespectful, please report it.)

 
5/21/2002 3:50:04 PMsomanath

simply great keep it up uma
(If this comment was disrespectful, please report it.)

 
6/23/2002 4:07:30 AMAnon

What compiler should I use to compile this? It doesnt work with Turbo C 2.0, umm.. help :)
(If this comment was disrespectful, please report it.)

 
8/12/2002 1:51:22 PMAzhar Khorasany

Hello
I am Azhar
Any one who might be getting the error Bgi graphics error should go to line no 22 and search the following graphics function.

initgraph(&driver,&mode,"");

Use the following line instead of the above line.

initgraph(&driver,&mode,"\\tc\\bgi");

I am using Turbo C 3.0 and I think Turbo C 2.0 users wouldn't be able to run, instead they should use Turbo C 3.0

By the way Uma, this is quiet unbelievable. I have never seen such extraordinary work.
Keep it up!

Thanks
Azhar
(If this comment was disrespectful, please report it.)

 
11/23/2002 1:26:07 PM

I cannot Execute this file in Turbo C++. I need this program soon. Please teach me how to do it!
(If this comment was disrespectful, please report it.)

 
4/1/2003 3:08:06 AM

we find erro when we excute this program we want to know which veriosn of compiler you use
please replay us soon
(If this comment was disrespectful, please report it.)

 
4/5/2003 6:37:46 AM

please i want to know which version you use to compile and run this program
(If this comment was disrespectful, please report it.)

 
4/16/2003 2:43:22 AM

hi Uma,
it's quite unbelivable!! I have got a lot of help from your program.but how have you got and loaded the ICN files? plz mail me at naimulkhan@hotmail.com .And keep it up,u r really a genius.
(If this comment was disrespectful, please report it.)

 
5/31/2003 5:55:24 PMStephen Sessions

Amul, you can right-click on the link and hit "save target as", then save it and open it from there.
(If this comment was disrespectful, please report it.)

 
9/1/2003 4:35:07 AM

iouiou
(If this comment was disrespectful, please report it.)

 
12/14/2003 10:29:57 PMhardik shah

nice code man.one peoplr of my class has submitted this project(offsourse urs)by adding his name!!!
(If this comment was disrespectful, please report it.)

 
10/2/2004 7:58:19 AM

very excellant job
(If this comment was disrespectful, please report it.)

 
4/26/2005 11:52:36 PM

Hi Uma.. I try to compile and it says it needs graphics.h and it doesn't exist. Can u pls help me?
(If this comment was disrespectful, please report it.)

 
6/3/2005 1:55:32 PMKarthik A

Hi maheswaran the code was superb if possible submit a code that exolains the use of menus in C. Even whoever know can post codes for that. And i was able to compile this source code in Turbo C 2.
(If this comment was disrespectful, please report it.)

 
8/25/2005 1:40:02 PMvivek

great

(If this comment was disrespectful, please report it.)

 
9/2/2005 2:20:43 PMUmme Samiha Esha

Great project....Bravo..:)
(If this comment was disrespectful, please report it.)

 
9/4/2005 3:16:13 PMdeepak

Hey yaar, i am using C++ version 3.0,and is getting a lots of errors, like
1. "buf_flag" is assigned a value that is never used. 2. 'j' is assigned a value that is never used. 3. x1 , y1, x2, y2 --- Parameter is never used
Paint.h 2773 & 2779 & 2822 --- Function should return a value.

Please tell me how to rectify the above problems.
(If this comment was disrespectful, please report it.)

 
5/17/2006 1:37:42 AMHiep_NQ

God that what I need to learn!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.