עזרה באתחול גרפיקה בC\C++
כאשר אני מנסה להתחל גרפיקה בעזרת הפקודה הבאה:
כאשר אני מנסה להתחל גרפיקה בעזרת הפקודה הבאה:
/* request auto detection */ int gdriver = DETECT, gmode, errorcode; int xmax, ymax; /* initialize graphics and local variables */ initgraph(&gdriver, &gmode, ""); /* read result of initialization */ errorcode = graphresult(); /* an error occurred */ if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any key to halt:"); getch(); exit(1); }
יש מחשבים מסויימים ישנים שבהם הגרפיקה עובדת במחשבים אחרת מופיע הארור שמופיע בתנאי למעלה, מישהו יודע איך לסדר את זה או לתקן את זה? זה לא נראה לי בעיית קוד אלא הבדלים בין מחשבים, יש אפשרות שיעבוד גם במחשבים אחרים?