Click here to Skip to main content
16,011,482 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: WM_GETTEXT( ).....?how doth it work? Pin
Ravi Bhavnani11-Dec-04 1:59
professionalRavi Bhavnani11-Dec-04 1:59 
GeneralRe: WM_GETTEXT( ).....?how doth it work? Pin
aaadetos12-Dec-04 9:31
aaadetos12-Dec-04 9:31 
GeneralMultithreading Pin
AslFunky10-Dec-04 23:25
AslFunky10-Dec-04 23:25 
GeneralRe: Multithreading Pin
Gary R. Wheeler11-Dec-04 2:14
Gary R. Wheeler11-Dec-04 2:14 
GeneralRe: Multithreading Pin
AslFunky12-Dec-04 21:23
AslFunky12-Dec-04 21:23 
GeneralRe: Multithreading Pin
Gary R. Wheeler13-Dec-04 4:08
Gary R. Wheeler13-Dec-04 4:08 
GeneralRe: Multithreading Pin
faroqtam11-Dec-04 9:25
faroqtam11-Dec-04 9:25 
GeneralRetrieving Data from a Dialog box Pin
aaadetos10-Dec-04 22:49
aaadetos10-Dec-04 22:49 
How would one retreive data input from the keyboard into a dialog box, which the compiler would process at run-time? I thought that making an instance of the class object which contains the data would be enough; but this doesn't cut it. See the following code:
<br />
void unbound(double *unbd, int nSize)<br />
{<br />
	enum{nSize = 100};<br />
	double A[nSize],B[nSize],k0[nSize],k1[nSize],s[nSize],expi[nSize],a[nSize],b[nSize];<br />
	<br />
	void bessk0(double *x,double *k0,int nSize);<br />
	void bessk1(double *x,double *k1, int nSize);<br />
	void ei(double *x, double *expi, int nSize);<br />
	<br />
	double x=0;<br />
	<br />
	s[0] = 1;<br />
	a[0] = x*sqrt(s[0]);<br />
	b[0] = 2*sqrt(s[0]);<br />
<br />
	bessk0(a,k0,nSize);<br />
	bessk1(a,k1,nSize);<br />
	ei(b,expi,nSize);<br />
<br />
	A[0] = k0[0]/(x*sqrt(s[0])*k1[0]);<br />
	B[0] = (1-exp(-2*sqrt(s[0])))/(2*sqrt(s[0]));<br />
	<br />
	unbd[0]=0.5*(A[0]-B[0]-expi[0]);<br />
<br />
	//trial: K0(x) --> x = rw*sqrt(s), as per A-32<br />
	for (int t=1;t<nSize;t++)<br />
	{<br />
		CKuchukDlg MyClass;	<br />
		x = 2;//MyClass.m_dWellRad; ****<br />
<br />
		s[t] = 2*t*PI;<br />
		a[t] = x*sqrt(s[t]);<br />
		b[t] = 2*sqrt(s[t]);<br />
<br />
		bessk0(a,k0,nSize);<br />
		bessk1(a,k1,nSize);<br />
		ei(b,expi,nSize);<br />
<br />
		A[t] = k0[t]/(x*sqrt(s[t])*k1[t]);<br />
		B[t] = (1-exp(-2*sqrt(s[t])))/(2*sqrt(s[t]));<br />
	<br />
		unbd[t]=0.5*(A[t]-B[t]-expi[t]);<br />
	}<br />
}

When line **** read x=MyClass.m_dWellRad;the compiler didn't process the variable m_dWellRad at run-time, but simply used x = 0(initialization). When I used x=2, it used the latter variable.

How then can I make the compiler use the value input from keyboard into my dialog box at run-time?
GeneralRe: Retrieving Data from a Dialog box Pin
Gary R. Wheeler11-Dec-04 2:18
Gary R. Wheeler11-Dec-04 2:18 
Generalcannot convert parameter 1 from 'ArrayType [7]' to 'int []' Pin
sacoskun10-Dec-04 21:22
sacoskun10-Dec-04 21:22 
GeneralRe: cannot convert parameter 1 from 'ArrayType [7]' to 'int []' Pin
Michael Dunn11-Dec-04 4:52
sitebuilderMichael Dunn11-Dec-04 4:52 
Generaltis abt getting keyboard eventz in a dialog box having many windows in it!!!!! Pin
namaskaaram10-Dec-04 19:21
namaskaaram10-Dec-04 19:21 
GeneralRe: tis abt getting keyboard eventz in a dialog box having many windows in it!!!!! Pin
John R. Shaw10-Dec-04 20:15
John R. Shaw10-Dec-04 20:15 
Generalmouse hooking Pin
Member 52815510-Dec-04 19:13
Member 52815510-Dec-04 19:13 
GeneralRe: mouse hooking Pin
John R. Shaw10-Dec-04 20:46
John R. Shaw10-Dec-04 20:46 
GeneralRe: mouse hooking Pin
Member 52815510-Dec-04 22:02
Member 52815510-Dec-04 22:02 
GeneralRe: mouse hooking Pin
John R. Shaw14-Dec-04 7:35
John R. Shaw14-Dec-04 7:35 
GeneralUpdateresource sample needed Pin
includeh1010-Dec-04 18:02
includeh1010-Dec-04 18:02 
GeneralRe: Updateresource sample needed Pin
John R. Shaw10-Dec-04 18:51
John R. Shaw10-Dec-04 18:51 
GeneralRe: Updateresource sample needed Pin
Gary R. Wheeler11-Dec-04 2:21
Gary R. Wheeler11-Dec-04 2:21 
QuestionMenu not loading???? Pin
ashsri10-Dec-04 16:13
ashsri10-Dec-04 16:13 
AnswerRe: Menu not loading???? Pin
John R. Shaw10-Dec-04 21:19
John R. Shaw10-Dec-04 21:19 
GeneralRe: Menu not loading???? Pin
ashsri11-Dec-04 4:47
ashsri11-Dec-04 4:47 
QuestionDLL: GetProcAddress() always returns NULL?? Pin
registering10-Dec-04 12:03
registering10-Dec-04 12:03 
AnswerRe: DLL: GetProcAddress() always returns NULL?? Pin
Mike Dimmick10-Dec-04 12:23
Mike Dimmick10-Dec-04 12:23 

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.