From: Paul Smith Date: 2009-12-03T01:07:27+09:00 Subject: Re: Graphics mode On Wed, Dec 2, 2009 at 3:49 PM, Teodor Carstea wrote: >>C++ doesn't have a way to "initialize graphics mode" > > Well, this is the way I do it in C++: > > #include > void main(){ >  //initializing graphics mode >        int gdriver=DETECT, gmode, errorcode; >  initgraph(&gdriver, &gmode, "C:\\Progra~1\\BORLANDC\\BGI"); >  errorcode = graphresult(); >  if(errorcode!=grOk) { >       cout<<"Graphics error!!!\n" >           <<"Press any key..."; >       getch(); >       exit(1); >  } > //... > //AND HERE IS DA MAIN PROGRAM CODE. > //... > } > > I'd like to make my ruby prog like this. Any Ideas? > P.S.: If you have an idea, please describe it in a way you would talk to > a noob, for I'm really green. Plus, I use Ubuntu, no comment. I'm really confused. You use Ubuntu, but you have a C:\ drive? You use ubuntu, and therefore have access to gcc, but use the Borland compiler instead? I think the best thing is for you to forget this 'graphics mode' and instead look at a library like rubygame. http://rubygame.org/wiki/Getting_started > > Thanks! > -- > Posted via http://www.ruby-forum.com/. > > -- Paul Smith http://www.nomadicfun.co.uk paul@pollyandpaul.co.uk