|
Hey glad 2 hear from u. I was in seattle,WA. Juz back at Blr last friday. Come 2 milton.kbaby@cognizant.com / miltonkb@msn.com
rgds...milton kb.
|
|
|
|
|
|
|
|
|
I said whats error he said debug error you said what debug error he said got it
whitesky
|
|
|
|
|
If you see a system dialog box with Retry or Break button, then click on that button, and then go to Call Stack panel (from menu: Debug --> Windows --> Call Stack) and see the history of last functions that were called before the error. This information can be useful.
|
|
|
|
|
Hello everyone. Im currently writing my own wizard and want to add a wizard side bar image to the left of my dialogs. ( you know, like the ones you usually get on installers.).
Anway i just wondered if anyone knew of a website which has free downloads of where to get such images? Ive been trying to draw my own when i thought "hang on! there must be a place to download some standard stock images" so i thought id ask here.
Thankyou.
|
|
|
|
|
i am to m.f.c . how to get integer value from the user
prashant jain
|
|
|
|
|
Create an edit box and use GetWindowText().
Convert text to int using atoi()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
thanx its working
prashant jain malviya national institute of technology
|
|
|
|
|
if you use a editbox you can use GetWindowText and then use atoi
<br />
m_Edit.ModifyStyle(0,ES_NUMBER);
CString str;<br />
m_Edit.GetWindowText(str);<br />
int index=atoi(str);<br />
whitesky
|
|
|
|
|
thanx
prashant jain malviya national institute of technology
|
|
|
|
|
Hi all,
I'm a newbie.
I tried this visual c++ code:
Console::WriteLine("Insert a double");
String __gc * letto = Console::ReadLine();
double doppio=letto->ToDouble(0);
Console::WriteLine( "you entered " );
Console::WriteLine(doppio);
but if i enter, for example, 20.5, the last command prints 205.
What should i do to print the correct value ?
Thanx in advance,
Desmo16.
|
|
|
|
|
|
You are doing it in the correct manner .No problem with that.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Maybe you should enter 20,5 with comma?
|
|
|
|
|
You are supposed to post Managed C++ questions under (Managed)C++/cli section. Going forward Please do that.
There is nothing wrong in the code. Its works fine for even decimals. Make sure u entered the decimal also while entering the data.
cheers ...milton KB
|
|
|
|
|
|
how to implement global subclassing
i have got around 6 controls in a Dlg and to create a subclass for all controls will be cumbersome what to do
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
Can you be more specific on what you really want to do, if you want to avoid Subclassing. What's your need?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
what i wanted to explain is that i have got a dialog which has 6 edit controls. all controls need subclassing, so can i make one subclass and use it for all the controls.
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
I got that from your very first post that you need to subclass the controls on your dialog. Can you be specific on what type of controls are you having on the dialog that need to be subclassed and for what?
If you want to process some messages to the control's you can subclass the edit control for once.
Say create a class called CXEdit derived from CEdit and then make the control variables for edit boxes of type CXEdit
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 7:05 Tuesday 20th June, 2006
|
|
|
|
|
they are all edit boxes and i need to restrict the alphabets and numbers in edit box .i cant use the PreTranslateMessage since i need to enable a listbox when i press the key .if i use subclasses it will take 6 subclasses .so can i use global subclassing and how to implement it.
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
Just derive the one class from CEdit and use that class for all the controls of type CEdit ..
class CEditEx:public CEdit<br />
{<br />
add extra methods or override the methods of the control.<br />
}
use the class as how we use Normal variables.
CEditEx m_Name,m_Goal;
Knock out 't' from can't,
You can if you think you can
-- modified at 7:07 Tuesday 20th June, 2006
|
|
|
|