Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to declare global variables in MFC dialog application? Pin
S. Senthil Kumar12-Feb-05 8:43
S. Senthil Kumar12-Feb-05 8:43 
GeneralMSHTML parsing error Pin
luda12-Feb-05 2:51
luda12-Feb-05 2:51 
GeneralRe: MSHTML parsing error Pin
ThatsAlok12-Feb-05 6:49
ThatsAlok12-Feb-05 6:49 
GeneralRe: MSHTML parsing error Pin
luda12-Feb-05 7:01
luda12-Feb-05 7:01 
GeneralRe: MSHTML parsing error Pin
ThatsAlok12-Feb-05 15:29
ThatsAlok12-Feb-05 15:29 
GeneralProblem trying to Advise Pin
djavanci12-Feb-05 2:18
djavanci12-Feb-05 2:18 
GeneralArray question Pin
jw8112-Feb-05 2:04
jw8112-Feb-05 2:04 
GeneralRe: Array question Pin
ThatsAlok12-Feb-05 2:15
ThatsAlok12-Feb-05 2:15 
jw81 wrote:
int count=0;
if((nFlags & MK_LBUTTON) == MK_LBUTTON){
count++


actaully problem is of Scope of variable count.it is local variable in function.

let see what actually happening in your code-> Every time you click on mouse the count variable created in memory and as function ends, count variable scope end and program release it from memory.

now to solve this problem with either declare it in global or make it local to class which handlling you onmousemove function rather declarign it in function.


"I Think this Will Help"
[Vote One Here,.....]
<h5
 alok gupta="" <br=""> visit me at http://www.thisisalok.tk

GeneralRe: Array question Pin
Emilio Garavaglia12-Feb-05 5:18
Emilio Garavaglia12-Feb-05 5:18 
GeneralRe: Array question Pin
ThatsAlok12-Feb-05 6:44
ThatsAlok12-Feb-05 6:44 
GeneralRe: Array question Pin
jw8112-Feb-05 15:37
jw8112-Feb-05 15:37 
GeneralRe: Array question Pin
Hamed Musavi12-Feb-05 11:26
Hamed Musavi12-Feb-05 11:26 
GeneralRe: Array question Pin
tttyip13-Feb-05 3:53
tttyip13-Feb-05 3:53 
Generalserial port programming Pin
Oriented12-Feb-05 0:29
Oriented12-Feb-05 0:29 
GeneralRe: serial port programming Pin
ThatsAlok12-Feb-05 0:53
ThatsAlok12-Feb-05 0:53 
QuestionHow to create splashwindow on MFC? Pin
bilas12-Feb-05 0:27
bilas12-Feb-05 0:27 
AnswerRe: How to create splashwindow on MFC? Pin
ThatsAlok12-Feb-05 0:48
ThatsAlok12-Feb-05 0:48 
GeneralRe: How to create splashwindow on MFC? Pin
V.G12-Feb-05 1:53
V.G12-Feb-05 1:53 
GeneralRe: How to create splashwindow on MFC? Pin
bilas12-Feb-05 1:57
bilas12-Feb-05 1:57 
GeneralRe: How to create splashwindow on MFC? Pin
V.G12-Feb-05 2:00
V.G12-Feb-05 2:00 
GeneralRe: How to create splashwindow on MFC? Pin
bilas12-Feb-05 2:11
bilas12-Feb-05 2:11 
GeneralRe: How to create splashwindow on MFC? Pin
Anonymous14-Feb-05 1:14
Anonymous14-Feb-05 1:14 
Generalquestion about Serialize Pin
Anonymous12-Feb-05 0:21
Anonymous12-Feb-05 0:21 
GeneralRe: question about Serialize Pin
Bob Ciora12-Feb-05 4:01
Bob Ciora12-Feb-05 4:01 
GeneralRe: question about Serialize Pin
Ravi Bhavnani12-Feb-05 5:02
professionalRavi Bhavnani12-Feb-05 5:02 

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.