Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: image drawing problem Pin
bob1697225-Sep-07 1:42
bob1697225-Sep-07 1:42 
QuestionHow to send/receive raw data to/from USB Pin
Mohammad A Gdeisat24-Sep-07 16:34
Mohammad A Gdeisat24-Sep-07 16:34 
AnswerRe: How to send/receive raw data to/from USB Pin
Cedric Moonen24-Sep-07 20:32
Cedric Moonen24-Sep-07 20:32 
Questionprogram runs and correct results, however, error messagr Pin
mrby12324-Sep-07 11:13
mrby12324-Sep-07 11:13 
AnswerRe: program runs and correct results, however, error messagr Pin
Mark Salsbery24-Sep-07 11:20
Mark Salsbery24-Sep-07 11:20 
GeneralRe: program runs and correct results, however, error messagr Pin
mrby12324-Sep-07 12:06
mrby12324-Sep-07 12:06 
GeneralRe: program runs and correct results, however, error messagr Pin
Mark Salsbery24-Sep-07 12:24
Mark Salsbery24-Sep-07 12:24 
GeneralRe: program runs and correct results, however, error messagr Pin
mrby12324-Sep-07 13:02
mrby12324-Sep-07 13:02 
QuestionRe: program runs and correct results, however, error messagr Pin
Mark Salsbery24-Sep-07 15:19
Mark Salsbery24-Sep-07 15:19 
AnswerRe: program runs and correct results, however, error messagr Pin
mrby12324-Sep-07 16:47
mrby12324-Sep-07 16:47 
GeneralRe: program runs and correct results, however, error messagr Pin
Mark Salsbery24-Sep-07 16:52
Mark Salsbery24-Sep-07 16:52 
Questionwhat kind of search is recommended??? Pin
pblais24-Sep-07 10:51
pblais24-Sep-07 10:51 
AnswerRe: what kind of search is recommended??? Pin
Waldermort24-Sep-07 19:16
Waldermort24-Sep-07 19:16 
GeneralRe: what kind of search is recommended??? Pin
pblais25-Sep-07 4:17
pblais25-Sep-07 4:17 
GeneralRe: what kind of search is recommended??? Pin
Waldermort25-Sep-07 4:40
Waldermort25-Sep-07 4:40 
GeneralRe: what kind of search is recommended??? Pin
pblais25-Sep-07 7:26
pblais25-Sep-07 7:26 
AnswerRe: what kind of search is recommended??? Pin
pblais3-Oct-07 8:50
pblais3-Oct-07 8:50 
QuestionSorry if wrong location. Trying to open unknown video type for processing. Pin
Code Monkey Mike24-Sep-07 10:41
Code Monkey Mike24-Sep-07 10:41 
QuestionCtrl Shift F9 will clear all breakpoints in VC 6.0 , however Pin
Vaclav_24-Sep-07 6:00
Vaclav_24-Sep-07 6:00 
AnswerRe: Ctrl Shift F9 will clear all breakpoints in VC 6.0 , however Pin
Maximilien24-Sep-07 7:21
Maximilien24-Sep-07 7:21 
QuestionCRectTracker static linking Pin
bob1697224-Sep-07 5:58
bob1697224-Sep-07 5:58 
AnswerRe: CRectTracker static linking Pin
Mark Salsbery24-Sep-07 6:36
Mark Salsbery24-Sep-07 6:36 
GeneralRe: CRectTracker static linking Pin
bob1697224-Sep-07 7:31
bob1697224-Sep-07 7:31 
Questiongraphics in c++ console program Pin
Sai Yasodharan24-Sep-07 5:58
Sai Yasodharan24-Sep-07 5:58 
hi,

i tried to execute the following program(which was given in turbo c++ documentation) in vc++. but it gives an error, that graphics.h can't be found.

so i copied that graphics.h from turbo c to the vc++'s include folder. now it is showing many errors, which i can't resolve(i even don't understand these errors). i am studying c++ in my college. our syllabus include everything from file handling to all oops concepts. but graphics is not covered in out syllabus. so i decided to learn it on my own. but don't know how to start

someone help me please


the following code works perfectly in turbo c, but not in vc++
<br />
#include <graphics.h><br />
#include <stdlib.h><br />
#include <stdio.h><br />
#include <conio.h><br />
<br />
int main(void)<br />
{<br />
   /* request auto detection */<br />
   int gdriver = DETECT, gmode, errorcode;<br />
   int xmax, ymax;<br />
<br />
   /* initialize graphics and local variables */<br />
   initgraph(&gdriver, &gmode, "");<br />
<br />
   /* read result of initialization */<br />
   errorcode = graphresult();<br />
   /* an error occurred */<br />
   if (errorcode != grOk)<br />
   {<br />
      printf("Graphics error: %s\n", grapherrormsg(errorcode));<br />
      printf("Press any key to halt:");<br />
      getch();<br />
      exit(1);<br />
   }<br />
<br />
   setcolor(getmaxcolor());<br />
   xmax = getmaxx();<br />
   ymax = getmaxy();<br />
<br />
   /* draw a diagonal line */<br />
   line(0, 0, xmax, ymax);<br />
<br />
   /* clean up */<br />
   getch();<br />
   closegraph();<br />
   return 0;<br />
}<br />


Known is a Drop, UnKnown is an Ocean
More about me at http://in.geocities.com/slagio2002/me.html

AnswerRe: graphics in c++ console program Pin
bob1697224-Sep-07 6:06
bob1697224-Sep-07 6:06 

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.