Apr 21st, 2002, 04:21 PM
#1
Thread Starter
Member
How can i add graphics to my C program
Hi i am new to this how can i add graphics to my C program lets say i wanted to add a image file how would i do this
Waheed Rafiq (ICT Technician):
Network +
Apr 21st, 2002, 04:23 PM
#2
PowerPoster
Are you just doing it in console? because you can't then.
If not, look in to open GL and direct X
US AUS AUS AUS AUS AUS A USAUSAUSAUSAUSAUSAUSA
USA USA USA USA USA USA USAUSAUSAUSAUSAUSAUSA
US AUS AUS AUS AUS AUS A USAUSAUSAUSAUSAUSAUSA
USA USA USA USA USA USA USAUSAUSAUSAUSAUSAUSA
US AUS AUS AUS AUS AUS A USAUSAUSAUSAUSAUSAUSA
USA USA USA USA USA USA USAUSAUSAUSAUSAUSAUSA
US AUS AUS AUS AUS AUS A USAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
Apr 21st, 2002, 04:37 PM
#3
Thread Starter
Member
ehhhhhhhhhhh help plz i am using Borland C++ on Windows 98 so what header would i need and what code would i use
i don't understand by open gL i am talking about basic *.bmp file being loaded up in lets say dos program or win32bit program how would i do this
Waheed Rafiq (ICT Technician):
Network +
Apr 21st, 2002, 06:05 PM
#4
Apr 22nd, 2002, 12:20 PM
#5
Thread Starter
Member
Micobasic
Thank you for putting me on the right path this makes more sense .
if only i had the knowledge
Inforwarrior
" May Man Kind deserve better "
Waheed Rafiq (ICT Technician):
Network +
Apr 22nd, 2002, 01:22 PM
#6
Monday Morning Lunatic
If you want to load the image up into a window, it's best that you understand the basics of creating the window first as well, without using MFC, because otherwise you'll confused yourself.
Also, Borland C++ doesn't come with MFC (I don't think, even though it may support it).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Apr 23rd, 2002, 07:16 AM
#7
Apr 23rd, 2002, 08:40 AM
#8
Borland doesn't support MFC because of name mangling.
Microbasic: have you tried this? Here's a quote from the docs:
(Bitmaps can be selected for memory device contexts only, and for only one device context at a time.)
You have to select the bitmap into a memory dc (created with CreateCompatibleDC) and the BitBlt it to the destination.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Apr 23rd, 2002, 11:21 AM
#9
Monday Morning Lunatic
Hey, look what I found that I made earlier...
Attached Files
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Apr 23rd, 2002, 12:45 PM
#10
while(GetMessage(&msg, NULL, 0, 0))
your early days, parksie?
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Apr 23rd, 2002, 12:51 PM
#11
Monday Morning Lunatic
Must have been.
Note to all, replace that with:
Code:
while(GetMessage(&msg, NULL, 0, 0) > 0)
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width