Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting text from an edit box Pin
toxcct13-Dec-04 7:42
toxcct13-Dec-04 7:42 
GeneralRe: Getting text from an edit box Pin
Antony M Kancidrowski13-Dec-04 9:47
Antony M Kancidrowski13-Dec-04 9:47 
GeneralRe: Getting text from an edit box Pin
aaadetos13-Dec-04 14:45
aaadetos13-Dec-04 14:45 
GeneralRe: Getting text from an edit box Pin
*Dreamz13-Dec-04 19:50
*Dreamz13-Dec-04 19:50 
GeneralRe: Getting text from an edit box Pin
aaadetos13-Dec-04 20:27
aaadetos13-Dec-04 20:27 
GeneralRe: Getting text from an edit box Pin
*Dreamz14-Dec-04 19:05
*Dreamz14-Dec-04 19:05 
GeneralRe: Getting text from an edit box Pin
aaadetos15-Dec-04 10:23
aaadetos15-Dec-04 10:23 
GeneralRe: Getting text from an edit box Pin
*Dreamz15-Dec-04 17:07
*Dreamz15-Dec-04 17:07 
aaadetos wrote:
CKuchukDlg MyClass;
MyClass.getrw(x);
x = MyClass.getrw(x);


You have got a dialog displayed already from where you get the Edit control' text.That is an existing instance of the class CKuchukDlg.You have to use the same instance for further operations.

Here what you do is,you have created an instance of CKuchukDlg.But no Dialog window is there for the paticular instance.And you are trying to get the Text from the Edit control.There is no such window to get the Text from.So you are getting the assertion failure.

This why i asked to use "this" poiter.
If you are calling "unbound(double *unbd, int nSize)" from your dialog class
pass the pointer of your "Current Dialog Window" to the function.

void unbound(double *unbd, int nSize,CDialog *pDialog)
{
........
//x = MyClass.getrw(x);
x = pDialog->getrw(x);
........
}

You can call the function like this...
SomeObj.unbound(x,y,this);

Better you can pass the Text from the edit control itself to the function.

void unbound(double *unbd, int nSize,double DataFrom_getrw)
{
........
//x = MyClass.getrw(x);
x = DataFrom_getrw;
........
}
GeneralRe: Getting text from an edit box Pin
Antony M Kancidrowski14-Dec-04 6:51
Antony M Kancidrowski14-Dec-04 6:51 
GeneralRe: Getting text from an edit box Pin
toxcct14-Dec-04 4:48
toxcct14-Dec-04 4:48 
QuestionHow to generate human friendly product keys using asymmetric crypto? Pin
Jim Howard13-Dec-04 6:06
Jim Howard13-Dec-04 6:06 
AnswerRe: How to generate human friendly product keys using asymmetric crypto? Pin
Chris Losinger13-Dec-04 7:49
professionalChris Losinger13-Dec-04 7:49 
GeneralRe: How to generate human friendly product keys using asymmetric crypto? Pin
Jim Howard13-Dec-04 7:59
Jim Howard13-Dec-04 7:59 
GeneralRe: How to generate human friendly product keys using asymmetric crypto? Pin
Chris Losinger13-Dec-04 8:30
professionalChris Losinger13-Dec-04 8:30 
Generalend of sizing or moving windows Dialog Pin
Thierry Lebrun13-Dec-04 5:26
Thierry Lebrun13-Dec-04 5:26 
GeneralRe: end of sizing or moving windows Dialog Pin
Phil J Pearson13-Dec-04 5:48
Phil J Pearson13-Dec-04 5:48 
GeneralRe: end of sizing or moving windows Dialog Pin
toxcct13-Dec-04 7:48
toxcct13-Dec-04 7:48 
GeneralRe: end of sizing or moving windows Dialog Pin
Blake Miller14-Dec-04 4:37
Blake Miller14-Dec-04 4:37 
GeneralRe: end of sizing or moving windows Dialog Pin
Thierry Lebrun14-Dec-04 8:29
Thierry Lebrun14-Dec-04 8:29 
GeneralSome help please Pin
Tom Wright13-Dec-04 5:12
Tom Wright13-Dec-04 5:12 
GeneralRe: Some help please Pin
Phil J Pearson13-Dec-04 5:46
Phil J Pearson13-Dec-04 5:46 
GeneralRe: Some help please Pin
Tom Wright13-Dec-04 6:02
Tom Wright13-Dec-04 6:02 
GeneralRe: Some help please Pin
Maximilien13-Dec-04 6:09
Maximilien13-Dec-04 6:09 
GeneralRe: Some help please Pin
Tom Wright13-Dec-04 6:12
Tom Wright13-Dec-04 6:12 
GeneralRe: Some help please Pin
PJ Arends13-Dec-04 7:00
professionalPJ Arends13-Dec-04 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.