Click here to Skip to main content
15,904,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SOLVED : Updating CPropertyPage Pin
Vaclav_20-Jun-12 4:08
Vaclav_20-Jun-12 4:08 
GeneralRe: SOLVED : Updating CPropertyPage Pin
David Crow20-Jun-12 4:12
David Crow20-Jun-12 4:12 
GeneralRe: SOLVED : Updating CPropertyPage Pin
Vaclav_20-Jun-12 8:36
Vaclav_20-Jun-12 8:36 
General3 Integer store with Bit Storage Pin
sheronici19-Jun-12 5:26
sheronici19-Jun-12 5:26 
GeneralRe: 3 Integer store with Bit Storage PinPopular
Chris Losinger19-Jun-12 5:28
professionalChris Losinger19-Jun-12 5:28 
GeneralRe: 3 Integer store with Bit Storage Pin
Maximilien19-Jun-12 12:31
Maximilien19-Jun-12 12:31 
GeneralRe: 3 Integer store with Bit Storage Pin
Rajesh R Subramanian19-Jun-12 18:20
professionalRajesh R Subramanian19-Jun-12 18:20 
QuestionJPEG header construction Pin
Andrea Rabitti19-Jun-12 3:57
Andrea Rabitti19-Jun-12 3:57 
AnswerRe: JPEG header construction Pin
Chris Losinger19-Jun-12 4:05
professionalChris Losinger19-Jun-12 4:05 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:16
Andrea Rabitti19-Jun-12 5:16 
GeneralRe: JPEG header construction Pin
Chris Losinger19-Jun-12 5:18
professionalChris Losinger19-Jun-12 5:18 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:25
Andrea Rabitti19-Jun-12 5:25 
GeneralRe: JPEG header construction Pin
Chris Losinger19-Jun-12 5:30
professionalChris Losinger19-Jun-12 5:30 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:34
Andrea Rabitti19-Jun-12 5:34 
Questionbasic gaming in c++ Pin
Member 913892418-Jun-12 18:10
Member 913892418-Jun-12 18:10 
AnswerRe: basic gaming in c++ Pin
Richard MacCutchan18-Jun-12 21:14
mveRichard MacCutchan18-Jun-12 21:14 
AnswerRe: basic gaming in c++ Pin
Maximilien19-Jun-12 0:55
Maximilien19-Jun-12 0:55 
GeneralRe: basic gaming in c++ Pin
JackDingler19-Jun-12 10:05
JackDingler19-Jun-12 10:05 
AnswerRe: basic gaming in c++ Pin
Sivaraman Dhamodharan19-Jun-12 22:47
Sivaraman Dhamodharan19-Jun-12 22:47 
Questionhow to make a line in c++ Pin
Member 913892418-Jun-12 18:03
Member 913892418-Jun-12 18:03 
AnswerRe: how to make a line in c++ Pin
enhzflep18-Jun-12 18:50
enhzflep18-Jun-12 18:50 
GeneralRe: how to make a line in c++ Pin
Member 913892419-Jun-12 0:43
Member 913892419-Jun-12 0:43 
GeneralRe: how to make a line in c++ Pin
enhzflep19-Jun-12 0:52
enhzflep19-Jun-12 0:52 
Could you be more specific please?

I'm not using sound, nor is the line drawn using Vegemite-sandwiches!

The line is drawn using pixels and (obviously) graphics!


If you'd like to use graphics.h (Are you using TurboC?) and would like to calculate the position of the individual pixels themselves, you should look up lineDDA or Bresenham or if you'd like it anti-aliased, the Wu Anti-Aliasing algorithm.

There's a million examples already out there. As a programmer, one of your fundamental skills (and tasks) is that of researching!

Go on, have a look it's not that hard. - If you want to code the line function yourself, you should be prepared to read some older code, since for the most part this is a problem that is solved using pre-existing functions, like the ones I linked you to. Functions that will work anywhere, regardless of the BitDepth or resolution of the display monitor. They are also optimized, that is to say they DO-NOT call Pixel(x,y,col) for each point in the line - they'll be a squillion times faster than anything you write yourself - many will also be seamlessly hardware-accelerated.

Smile | :)
QuestionRe: how to make a line in c++ Pin
Member 913892419-Jun-12 17:45
Member 913892419-Jun-12 17:45 
AnswerMessage Removed Pin
19-Jun-12 17:49
enhzflep19-Jun-12 17:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.