You are not logged in.
I'm taking another shot at learning C++ but I was wondering how would I porgram a simple Hello World with graphics? Say I wanted it to come up and say Hello World with fancy text instead of Command Prompt.
Offline
Some Basics:
http://www.gamedev.net/reference/articl … cle994.asp
http://users.actcom.co.il/~choo/lupg/tu … mming.html
private: System::Void pictureBox1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e)
{
System::Drawing::Drawing2D::LinearGradientBrush^ myBrush = gcnew System::Drawing::Drawing2D::LinearGradientBrush(ClientRectangle, Color::Blue, Color::Yellow, System::Drawing::Drawing2D:: LinearGradientMode::Horizontal);
System::Drawing::Font^ myFont = gcnew System::Drawing::Font(L"Calibri", 18);
e->Graphics->DrawString(L"Test", myFont, myBrush, 10, 10);If that helped any...
http://www.cprogramming.com/tutorial/op … ction.html
Offline
You never disappoint. Thanks!
Offline