How do you make graphics in C++? I can make text-only programs, but at some point I'll need graphics. Any suggestions or tutorial links?
You dont need graphics.. and do you mean GUI (graphical user interface) or something like directx or open gl :p they are all totally different learn the basics b4 u even bother trying gfx
He means a graphical user interface. Sorry, I don't know of any tutorials. just look for example code of simple GUI programs and learn from them.
www.planetsourcecode.com
*well... guess who's back? (for those of you who remember me, from the older days)*
Well... being quite experienced in C++ as I am *cough* Yes... there is a way to create graphics in C++ (DOS).
If you have a Borland Compiler at hand.. it's quite easy (although time-consuming)
Just tell me if you want some examples from me...
I'll be glad to help ya out...
I remember you. You were a noob.
yes... .. right
Wanted to get in with the big buys and play around the digital arena .. hehe... that was quite some time ago
Then I got meself out of the n00b-camp and started getting serious.. actually learning something and studying...
Well.. here I am,, after milllions of lines in C++ and Haskell (and other languages) and a lot of math and so...
I'll do my best to share the knowledge I hold and gain new....
lol WHATEVER!
#include <iostream>
int main(){
printf("I DONT WANT TO KNOW YOUR NAME\n");
return 0;
}
.386
.model flat,stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
.data
testing db "Is this a message Box",0
testing1 db "Is this really a message box",0
.code
start:
push NULL
push offset testing
push offset testing1
push NULL
call MessageBoxA
push NULL
call ExitProcess
end start
thats the extent of my coding.. i dont know what that even does can u help me out man!!
Which of the codes do you mean?
Looks like C/C++ on the upper hand, and some ASM language on the other....
Actually, it looks like some W32 implementation of ASM, uhhmm.. what's it called.... GOASM is one of those kinds...
lol its called w32asm and im using masm32 if u look at the include ^^ duh
Explain them to me.. coz i dont know what they do
*snickers*
well.....
since you actually do NOT seem NOT to know what you are doing.... I just won't help you.
So, plz. Don't waste my time with redicilous pranks.
BlackKnight is a cocky bish. And you're still a noob.
--Takes a moment to rephrase zenon's quote
"It's not my code that's useless, it's your imagination that's nonexistant."
black night do you know c++? because quote".386.model flat,stdcalloption casemap :noneinclude \masm32\include\windows.incinclude \masm32\include\kernel32.incincludelib \masm32\lib\kernel32.lib.datatesting db "Is this a message Box",0testing1 db "Is this really a message box",0.codestart:push NULLpush offset testingpush offset testing1push NULLcall MessageBoxApush NULLcall ExitProcessend start"
makes no sence im new and even i can do better
To bad that you feel that way SilentRage..
Originally posted by zenon:
To bad that you feel that way SilentRage..
b3c4u53 h3 Wi11 h4x0r j00!!!! pwn j00r b0x!!!!!!!!
PH33R!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
black night do you know c++? because quote " etc..."
lmao my silly idiotic friend.. you negelect to see that this is asm which is a low level language and not c++ i dont care what forum im in coz im a cocky son of a [censored].. i like it ruff and i hope shes ruff back
oh and btw
http://serialcoders.sytes.net/bknight/ ^^
Thanks silentrage *snickers*
Wow.. that got violent just for a bit of graphics code. What I was wondering was how to do graphics without having to make eat picture and pointing to them, because that would take a lot of disk space..
Well... yeah, I think there are certain individuals that have atitude problems. Since that owner-change of the undergroundnews board (like 2 years ago)? the UGN.board lost a lot of reasonable and good-hearted members.
There are far to many show-offs now....
To bad things go that way...
It is funny how people say things have worsened and some people say things have improved. I think such opinions are pointless and should be kept private. But if we're handing out opinions here's mine. People just see what they expect to see.
And btw. I just pretend to be a tough guy. Don't put any credit into comments like "you're a noob".
whoooa .... hold your horses.
You really had me there .... *yeah, right*
Annyway....
So, what have you guys been coding since last time?
(last time we met)
The zone manager script in perl for
www.dollardns.org is my latest accomplishment in programming.
sweet... seems okay to me
A stupid question, (but hey, no question is stupid)...
Annyone of you guys coming over to Dreamhack?
lol..zenon for someone who is so opioninative you sure have a weird perspective on [censored]..
haven't been here that long so dont know about 2 years ago...
Well... yeah, I think there are certain individuals that have atitude problems. Since that owner-change of the undergroundnews board (like 2 years ago)? the UGN.board lost a lot of reasonable and good-hearted members.
There are far to many show-offs now....
To bad things go that way...
probably reffering to me.. i don't care if you think im showing off bcoz im not really.. i'm just sick of people claiming they can do [censored] when they can't.. I guess it comes down to a luck of trust between new members of the board because they all seem like noobs.. and i don't know what they are on about but I can't pass judgement on you bcoz i don't know you , I stand but what i say i dont care how i sound :p
well Knight... that's good... that's how everyone should be...
honest about their thoughts, and really hang on to their beliefes... no matter how f*cked their beliefes are....
yeah! I like people with a strong personality...
C'os they are the ones that people remember....
Like:
-The rude mother**** at 7-11, the fuc***up old lady in the tram that just pushes herself infront of you like you never existed, the f***up store owner that won't give you a 1 cent credit when your'e 1 cent short, Adolf Hitler...
yeah Knight... I like your style!
Keep going!!!
And by the way.. I am NOT claiming I can do something I cant.
Just for the record!
you claimed you could help me you couldnt so yeah lol <img border="0" alt="
" title="" src="graemlins/devil.gif" />
and redmage there is an example of gui code in there.. using mfc i can also just use the win32api calls but i only do tht in asm ^^
Ok that's enough. I personally have nothing bad to say about zenon. Stop picking him apart like you're an atheist who found somebody claiming to be jesus. Zenon probably knows C++. He never said anything about knowing ASM.
Sorry redmage for closing your post, but I feel it has been answered. Do your own searching now for answers to such a general question.