HELP!
-
i'm in the midst of a mini project and i would like to know the library for graphics for Visual C. library as like example: #include is for the standard input and output. I would like to those who know to help me as i'm desperate! Thank you! :confused: Jan
-
i'm in the midst of a mini project and i would like to know the library for graphics for Visual C. library as like example: #include is for the standard input and output. I would like to those who know to help me as i'm desperate! Thank you! :confused: Jan
-
Jan, you'd have to be a little more specific. What type of graphics are you wanting? GDI - #include or #include GDIPlus - #include But then there is also: DirectX, OpenGL and a million and one other libraries out there. Regards, Ray
-
thanks for replying......... hmm......actually i have no idea, i want to implement say boxes and drawing pics and i'm using Visual C++, when i was using Borland C++ the library was #include graphics.h but now it isnt applicable! :confused: Jan
Didn't see you'd posted this here as well. The Visual C++ forum is the only correct place for this question, but if you have a Win32 or MFC project, you should find all the GDI functions are there for you. BTW I dunno what you were trying to include because when you put anything between < and >, it gets removed from the post and interpreted as an HTML tag. Use an ampersand and lt or gt to put < or > into your posts. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
-
Didn't see you'd posted this here as well. The Visual C++ forum is the only correct place for this question, but if you have a Win32 or MFC project, you should find all the GDI functions are there for you. BTW I dunno what you were trying to include because when you put anything between < and >, it gets removed from the post and interpreted as an HTML tag. Use an ampersand and lt or gt to put < or > into your posts. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
the function is something like that: void draw_menu(char na[]) { settextjustify(0,0); setcolor(LIGHTGREEN); //{ settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(180,70,"Airlines"); //top inrroduction text settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(280,440,"Information"); //} setcolor(15);//border rectangle(0,0,639,479); BOX(55,167,291,223,0,na[0],14,1,7,12); //display schedule function box BOX(55,247,291,303,0,na[1],2,1,7,15); //display reserve function box BOX(55,327,291,383,0,na[2],15,1,7,13); //display available function box BOX(353,167,589,223,0,na[3],4,1,7,10); //display cancel function box BOX(353,247,589,303,0,na[4],1,1,7,14); //display list function box BOX(353,327,589,383,0,na[5],15,1,7,7); //display quit and save function box return; }
-
Didn't see you'd posted this here as well. The Visual C++ forum is the only correct place for this question, but if you have a Win32 or MFC project, you should find all the GDI functions are there for you. BTW I dunno what you were trying to include because when you put anything between < and >, it gets removed from the post and interpreted as an HTML tag. Use an ampersand and lt or gt to put < or > into your posts. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
-
the function is something like that: void draw_menu(char na[]) { settextjustify(0,0); setcolor(LIGHTGREEN); //{ settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(180,70,"Airlines"); //top inrroduction text settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(280,440,"Information"); //} setcolor(15);//border rectangle(0,0,639,479); BOX(55,167,291,223,0,na[0],14,1,7,12); //display schedule function box BOX(55,247,291,303,0,na[1],2,1,7,15); //display reserve function box BOX(55,327,291,383,0,na[2],15,1,7,13); //display available function box BOX(353,167,589,223,0,na[3],4,1,7,10); //display cancel function box BOX(353,247,589,303,0,na[4],1,1,7,14); //display list function box BOX(353,327,589,383,0,na[5],15,1,7,7); //display quit and save function box return; }
I've replied to this in the Visual C forum where it belongs. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
-
the function is something like that: void draw_menu(char na[]) { settextjustify(0,0); setcolor(LIGHTGREEN); //{ settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(180,70,"Airlines"); //top inrroduction text settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(280,440,"Information"); //} setcolor(15);//border rectangle(0,0,639,479); BOX(55,167,291,223,0,na[0],14,1,7,12); //display schedule function box BOX(55,247,291,303,0,na[1],2,1,7,15); //display reserve function box BOX(55,327,291,383,0,na[2],15,1,7,13); //display available function box BOX(353,167,589,223,0,na[3],4,1,7,10); //display cancel function box BOX(353,247,589,303,0,na[4],1,1,7,14); //display list function box BOX(353,327,589,383,0,na[5],15,1,7,7); //display quit and save function box return; }
Look At: DrawText Rectangle FrameRect MoveTo LineTo CreatePen SelectObject SetTextColor SetBkMode CreateSolidBush They are all part of the Windows GDI API and standard to ALL windows plaforms. Try buying Programming Windows 95 by Charles Petzold. Norm Almond Chief Technical Architect FS Walker Hughes Limited
-
Microsoft removed all of the DOS mode drawing commands from their library. I tried to port a Borland C++ project years ago and I had to revert back to Microsoft Visual C++ 1.5 (16-bit) in order to do this. The latest Visual Studio doesn't have this stuff. However, you can use the Windows GDI to draw lines and text, although it is a lot more complicated. Brigham W. Thorp Software Engineer Timex Corporation