RFBourquin 0 Newbie Poster

(First, declare the device mode class)
DEVMODE NewDevice;

(The members of this class you will need)
NewDevice.dmSize = sizeof(DEVMODE);
NewDevice.dmPelsWidth = 1024;
NewDevice.dmPelsHeight = 768;


(In the main program)
ChangeDisplaySettings(&NewDevice, 0);

RFBourquin 0 Newbie Poster

Thanks very much. Both solutions work great.

RFBourquin 0 Newbie Poster

How can I link to another URL when my web page opens without clicking on "link"?
I'm just learning html and understand how to link using the anchor and href.
Example:

<html>
<body>

<p>
<a href="http://msm/com">
Click Here </a> 
</p>

</body>
</html>

How can I get my webpage to open the link without having to have the "Click Here" present?

RFBourquin 0 Newbie Poster

Thanx. Now I just have to figure out how to use it. I will, eventually.

RFBourquin 0 Newbie Poster

I can't seem to find any function which will allow me to obtain the Windows screen resolution and/or set it in C++.
I would like to be able to change it, then change it back.

Thanx

RFBourquin 0 Newbie Poster

Got it! Thanx!

RFBourquin 0 Newbie Poster

Thanks for the quick response.

RFBourquin 0 Newbie Poster

Need BigTime Help.

I am having a great deal of trouble with strings and chars in C++. Judging by the posts at this site, I see I'm not alone. Other programming languages give me no problem -- I can manipulate strings pretty well. Here is my problem.

How can output a string type variable into a windows rectangle? DrawText(HDC,LPCTSTR,int,LPRECT,UINT) expects a char pointer as LPCTSTR but the data is declared as a string type. I need the data as a string type because I need to extract it from a string using "string.find". Can I convert the extracted string to char? If not, how do extract a substring from char. In other words, does there exist, or can I create a similar function to do the same thing with char as "string.find" does with strings.

Let me try to make this clear:
string mystring="123456789" mystring.find("3",0) returns position 4.
char *mychar="123456789" how do I find the position of "3"?

Thanx
RFBourquin