Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting Hex number to Dec number Pin
Mircea Puiu10-Dec-04 0:24
Mircea Puiu10-Dec-04 0:24 
QuestionCould anyone help me to comment these code in detail? Pin
LiYS9-Dec-04 21:32
LiYS9-Dec-04 21:32 
AnswerRe: Could anyone help me to comment these code in detail? Pin
ThatsAlok9-Dec-04 22:12
ThatsAlok9-Dec-04 22:12 
AnswerRe: Could anyone help me to comment these code in detail? Pin
LiYS9-Dec-04 22:15
LiYS9-Dec-04 22:15 
GeneralRe: Could anyone help me to comment these code in detail? Pin
Mircea Puiu10-Dec-04 0:29
Mircea Puiu10-Dec-04 0:29 
GeneralProblem about Owner Window Pin
Arcrest9-Dec-04 21:21
Arcrest9-Dec-04 21:21 
GeneralForward key to another controller Pin
Mathias S.9-Dec-04 21:11
Mathias S.9-Dec-04 21:11 
GeneralInstance of a class..... Pin
aaadetos9-Dec-04 20:44
aaadetos9-Dec-04 20:44 
I have a problem with an instance of a class. The class member variable instantiated by a class object appears not to be updated to what the user defines at run time.

The problem is to do with the fact that the user-defined variable at run-time is not being used. How do I change that. UpdateData(TRUE); in the change or update events of those variables don't work.

For instance,
<br />
double x = 0;//this is already initialized in the compiler-generated constructor <br />
<br />
CKuchukDlg MyClass;<br />
MyClass.m_dWellRad = x;<br />

At run-time, the proigram crashes. On debugging, I found that the compiler isn't using the value ascribed by the user(me) as x. After using x=0, x later becomes some bogus number: -9.2559631349318e+061. When i don't initialize my variable x, i get a warning; but still at run-time, x becomes this bogus number again, not the value set at run-time.

How can i capture the value set at run-time??
<br />
void CKuchukDlg::OnUpdateWellrad() <br />
UpdateData(TRUE);<br />
doesn't help. Neither does it help on the event-->void CKuchukDlg::OnChangeWellrad()
QuestionHow to get WM_VSCROLL? Pin
freehawk9-Dec-04 20:27
freehawk9-Dec-04 20:27 
AnswerRe: How to get WM_VSCROLL? Pin
ThatsAlok9-Dec-04 21:46
ThatsAlok9-Dec-04 21:46 
GeneralRe: How to get WM_VSCROLL? Pin
freehawk9-Dec-04 22:00
freehawk9-Dec-04 22:00 
AnswerRe: How to get WM_VSCROLL? Pin
ThatsAlok9-Dec-04 23:54
ThatsAlok9-Dec-04 23:54 
AnswerRe: How to get WM_VSCROLL? Pin
Mircea Puiu10-Dec-04 0:35
Mircea Puiu10-Dec-04 0:35 
GeneralPoint to CView from CWinApp Pin
johnny__XP9-Dec-04 19:54
johnny__XP9-Dec-04 19:54 
Questionhow to access CEditView for Doc Pin
josephvan9-Dec-04 18:43
josephvan9-Dec-04 18:43 
GeneralAbout Mapping Mode Pin
LiYS9-Dec-04 17:58
LiYS9-Dec-04 17:58 
Generalmdi Pin
vc-programmer-9-Dec-04 17:46
vc-programmer-9-Dec-04 17:46 
GeneralRe: mdi Pin
Renjith Ramachandran9-Dec-04 19:10
Renjith Ramachandran9-Dec-04 19:10 
Generalstd::map and string as a key Pin
Imtiaz Murtaza9-Dec-04 17:13
Imtiaz Murtaza9-Dec-04 17:13 
GeneralRe: std::map and string as a key Pin
Joaquín M López Muñoz9-Dec-04 19:59
Joaquín M López Muñoz9-Dec-04 19:59 
QuestionHow do I stop appearing SQL Sever Login Dialog again and again? Pin
pubududilena9-Dec-04 17:13
pubududilena9-Dec-04 17:13 
AnswerRe: How do I stop appearing SQL Sever Login Dialog again and again? Pin
Renjith Ramachandran9-Dec-04 18:48
Renjith Ramachandran9-Dec-04 18:48 
GeneralHelp! Pin
Anonymous9-Dec-04 13:09
Anonymous9-Dec-04 13:09 
GeneralRe: Help! Pin
toxcct9-Dec-04 21:54
toxcct9-Dec-04 21:54 
QuestionHow to do oldschool graphics in win Pin
mirex9-Dec-04 11:03
mirex9-Dec-04 11:03 

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.