Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gorf_Rules

win32 problem

This topic is 5329 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

output on the first rRange is equalling 4 humm
	case WM_PAINT:
		hdc = BeginPaint(hWnd, &ps);
		// TODO: Add any drawing code here...

		if(takenInFile==true)
		{
			output = fileTitles[0];
			TextOut(hdc, 270, 40, output.c_str(),strlen(output.c_str()));
			output = fileTitles[1];
			TextOut(hdc, 10, 250, output.c_str(),strlen(output.c_str()));
			output = fileTitles[2];
			TextOut(hdc, 270, 400, output.c_str(),strlen(output.c_str()));
			for(int i = 0; i < fileCords.size(); ++i)
			{
				if(fileCords[i-1] > range)
				range = fileCords[i-1];
			}
			rRange =0;
			output = _itoa(rRange,buffer, 10);
			rRange =(range /5);
			TextOut(hdc, 200, 350, output.c_str(),strlen(output.c_str()));
			oHolder = sprintf(buffer, "%.02lf", (rRange*1));
			output = _itoa(oHolder,buffer, 10);
			TextOut(hdc, 200, 310, output.c_str(),strlen(output.c_str()));
			oHolder = sprintf(buffer, "%.02lf", (rRange*2));
			output = _itoa(oHolder,buffer, 10);
			TextOut(hdc, 200, 270, output.c_str(),strlen(output.c_str()));
			oHolder = sprintf(buffer, "%.02lf", (rRange*3));
			TextOut(hdc, 200, 230, output.c_str(),strlen(output.c_str()));
			oHolder = sprintf(buffer, "%.02lf", (rRange*4));
			TextOut(hdc, 200, 190, output.c_str(),strlen(output.c_str()));
			oHolder = sprintf(buffer, "%.02lf", (rRange*5));
			TextOut(hdc, 200, 150, output.c_str(),strlen(output.c_str()));
			for(int i = 0; i < fileCords.size(); ++i)
			{
				output = _itoa((i+1),buffer, 10);
				TextOut(hdc, (220+(i*20)), 370, output.c_str(), strlen(output.c_str()));
			}
			takenInFile = false;
		}
		EndPaint(hWnd, &ps);
		break;

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!