|
Ya, sometime, people simply unware of forum culture. And lazy as well.
Yeh, I've moved to new employer recently, and hardly get time for CP.
|
|
|
|
|
I have a problem in running application in remote desktop. In remote desktop 'Display' tab if i set color option as 'High color (16 bit)' my application is giving an error message like "Will not be able to display color images with these settings". So we have set 'True color (24 bit)' option. But in this case the application is working fine in some machines. If i log in using remote desktop from some machines and check the display settings it gets changed automatically to 'Medium (16 bit)' and the application shows the same error message. OS used is Windows XP in all the machines.
Can somebody help me in solving this issue?
|
|
|
|
|
Is this solely with your application? Or with remote desktop in general?
Have you tried running your application on your own desktop with the settings as 16bit - maybe it's your app, not remoe desktop?
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
No application is not working properly with 16 bit setting. If you have some other suggestion i will be happy to hear.
modified on Wednesday, April 23, 2008 1:02 AM
|
|
|
|
|
I found the solution. I have to change the colour resolution of the terminal services setting to 24 bit. For more details check the following link.
http://support.microsoft.com/?kbid=323353#appliesto
|
|
|
|
|
How can we create Radio Buttons dynamically Using VC++?
usharani
modified on Tuesday, April 22, 2008 6:15 AM
|
|
|
|
|
|
You can use of CCButton CButton class or CreateWindow for make them.
modified on Tuesday, April 22, 2008 7:01 AM
|
|
|
|
|
Hamid. wrote: You can use of CCButton
And what about CCCButton ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Oh it was a little mistake(maybe it was abbreviation cpallini.freeproducts.com->CCButton)
|
|
|
|
|
Always joke ah...!
Born to win...!
|
|
|
|
|
How can we create RadioButtons at runtime
Means i have recognised the COM Ports and those i need to display as radiobuttons for User Selection but Number of COM ports may differ sooo i some assistance to how to create radiobuttons dynamically depending on data we get at runtime.
for ex we COM1 COM2 ports
now i have to get those and create radiobutons
but data may change
it can only COM1 depending on connnection
usharani
|
|
|
|
|
I think you can use like this for example
CButton m_Button[3];
m_Button[0].Create(_T("Port1"),WS_CHILD|BS_RADIOBUTTON|WS_VISIBLE,CRect(0,0,100,23),this,1);
...
|
|
|
|
|
What about a list (or combo) box?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Create buttons on heap for this purpose.
CButton *pBtns = new CButton[nNumOfPorts];
pBtns[0].Create(....using radio button style);
pBtns[1].Create(....using radio button style);
pBtns[nNumOfPorts-1].Create(....using radio button style);
|
|
|
|
|
prasad_som wrote: CButton *pBtns = new CButton[nNumOfPorts];
pBtns->Create(....using radio button style);
That is wrong.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
I suggest you to suggest him ( ) the final cleanup too. Do you know, when dealing with dynamic allocation, newbies tend to forget it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
He/She has not replied to my reply, obviouslu he has not followed m answer.
|
|
|
|
|
Who knows, maybe he silently has.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
In the same way as you would any other button, just use the BS_RADIOBUTTON style.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
<br />
int i = 10;<br />
int k = 100;<br />
switch(i)<br />
{<br />
case 0:<br />
cout << "case 0" <<endl;<br />
break;<br />
if(k == 100)<br />
{<br />
case 10:<br />
cout <<"The device type is 100 so attribute 10 is valid"<<endl;<br />
break;<br />
}<br />
else<br />
{<br />
case 100:<br />
cout <<"attribute 100 is there" << endl;<br />
break;<br />
}<br />
break;<br />
default:<br />
cout <<"default"<<endl;<br />
}<br />
Please confirm whether 'if' could be placed inside a switch statement.
Pratap
|
|
|
|
|
a. yes
b. no
c. maybe
d. none of the above
codito ergo sum
|
|
|
|
|
Thanks for the reply. Please post your choice.
|
|
|
|
|
Is this a real question? or you are new to c++?
|
|
|
|