|
-
Jun 16th, 2002, 03:01 PM
#1
Thread Starter
Lively Member
Drawing lines
how can i draw lines in console progs?
is it easy enough for a moron like i?
Often talked of, never seen,
Ever coming, never been,
Daily looked for, never here,
Still approaching, coming near,
Thousands for its visit wait,
But alas for their fate,
Tho' they expect me to appear,
They will never find me here.
What's this about?
-
Jun 16th, 2002, 03:30 PM
#2
Monday Morning Lunatic
Console mode doesn't have lines as such, unless you're faking it with clever placement of characters (it can be done, but it's not often worth it).
If you want to do anything graphical you're best off making a proper Windows program.
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
-
Jun 21st, 2002, 08:32 PM
#3
Addicted Member
If U rusing Borlandc++3 or 5 U just install all the examples .There U will get very simple example of drawing circle U just go through it.However U have to use bge that comes with c++.
-
Jun 24th, 2002, 07:35 AM
#4
Thread Starter
Lively Member
i dont have borland. i use microsoft vc++.
is there at least a way i can change pixel colors?
Often talked of, never seen,
Ever coming, never been,
Daily looked for, never here,
Still approaching, coming near,
Thousands for its visit wait,
But alas for their fate,
Tho' they expect me to appear,
They will never find me here.
What's this about?
-
Jun 24th, 2002, 11:09 AM
#5
Monday Morning Lunatic
Nope, not in a console. That's definitely a text-only zone.
If you want to do graphics you'll need to learn how to make a Win32 GUI program (I'm not picking on you here, I say this to everyone, but make sure you know the language fully, all the ins and outs, before you try Windows programming).
Once you've got that, you can do the basic Windows graphical operations, then move onto the more advanced OpenGL or DirectX stuff
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
-
Jun 25th, 2002, 04:31 PM
#6
Thread Starter
Lively Member
im new to c++, but i was wondering, could i use setpixelV, like in vb?
if so, what would the dc be?
Often talked of, never seen,
Ever coming, never been,
Daily looked for, never here,
Still approaching, coming near,
Thousands for its visit wait,
But alas for their fate,
Tho' they expect me to appear,
They will never find me here.
What's this about?
-
Jun 25th, 2002, 04:38 PM
#7
Monday Morning Lunatic
No, not in a console.
They provide NO graphical facilities of ANY kind, except for making interesting text patterns.
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
-
Jun 26th, 2002, 03:41 PM
#8
Thread Starter
Lively Member
ok, but what about the none console apps (mfc)?
Often talked of, never seen,
Ever coming, never been,
Daily looked for, never here,
Still approaching, coming near,
Thousands for its visit wait,
But alas for their fate,
Tho' they expect me to appear,
They will never find me here.
What's this about?
-
Jun 26th, 2002, 05:04 PM
#9
Monday Morning Lunatic
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
-
Jun 27th, 2002, 01:22 PM
#10
Thread Starter
Lively Member
if i use api, alot of the stuff i use (bitblt, setpixelv, etc) uses dc's, and i dont know how to use dc's in c++. if you could tell me how to get the dc of the window (me.hdc in vb) then that would help alot.
Often talked of, never seen,
Ever coming, never been,
Daily looked for, never here,
Still approaching, coming near,
Thousands for its visit wait,
But alas for their fate,
Tho' they expect me to appear,
They will never find me here.
What's this about?
-
Jun 27th, 2002, 01:26 PM
#11
Monday Morning Lunatic
http://winprog.org/tutorial/
They've got a section on graphics
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
-
Jun 27th, 2002, 09:44 PM
#12
Addicted Member
if U r working in console then
user goto_xy(x,y);
for hori
putchar(179)
for vertical
putchar(186)
for corners
putchar(218)
putchar(191)
putchar(192)
putchar(217)
for (i=startx;i<endxli++)
{
goto_xy(i,starty);
putchar(179)
}
-
Jun 27th, 2002, 10:53 PM
#13
PowerPoster
Originally posted by purusingh
if U r working in console then
user goto_xy(x,y);
for hori
putchar(179)
for vertical
putchar(186)
for corners
putchar(218)
putchar(191)
putchar(192)
putchar(217)
for (i=startx;i<endxli++)
{
goto_xy(i,starty);
putchar(179)
}
It won't work in Visual C++. I think it's for Borland C++ or DJ****(whatever it's called).
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
|