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

C / C++ / MFC

 
AnswerRe: How to run exe file using C++? Pin
Michael Dunn14-Nov-04 4:50
sitebuilderMichael Dunn14-Nov-04 4:50 
AnswerRe: How to run exe file using C++? Pin
ThatsAlok14-Nov-04 18:32
ThatsAlok14-Nov-04 18:32 
GeneralCAsyncMonikerFile Pin
PetoG14-Nov-04 1:31
PetoG14-Nov-04 1:31 
GeneralRe: CAsyncMonikerFile Pin
John R. Shaw14-Nov-04 10:03
John R. Shaw14-Nov-04 10:03 
GeneralRe: CAsyncMonikerFile Pin
PetoG15-Nov-04 4:58
PetoG15-Nov-04 4:58 
QuestionHelp!!! How to change Cursor Permanent ??? Pin
VikramDelhi13-Nov-04 23:29
VikramDelhi13-Nov-04 23:29 
AnswerRe: Help!!! How to change Cursor Permanent ??? Pin
Jack Puppy14-Nov-04 1:19
Jack Puppy14-Nov-04 1:19 
GeneralRe: Help!!! How to change Cursor Permanent ??? Pin
John R. Shaw14-Nov-04 9:33
John R. Shaw14-Nov-04 9:33 
Good advice! But you do not need to maintain a copy of the cursor handle.

From MSDN:
"The LoadCursor function loads the cursor resource only if it has not been loaded; otherwise, it retrieves the handle to the existing resource."

In other words, the system maintains a copy of the cursor handle for you.

SetCursor(AfxGetApp()->LoadCursor(IDC_MYCURSOR));

The cursor is a resource included in the .exe (or sytem resoruces). Therefore, you do not need to test the handle. If the handle returned is not valid then there is a much bigger problem involved (and the program has locked up or crashed, do to lack of memory).

INTP
GeneralRe: Help!!! How to change Cursor Permanent ??? Pin
gamitech15-Nov-04 19:54
gamitech15-Nov-04 19:54 
GeneralRe: Help!!! How to change Cursor Permanent ??? Pin
VikramDelhi16-Nov-04 8:41
VikramDelhi16-Nov-04 8:41 
Questionhow to use mscomm32 activex in my own activex? Pin
Kamyar Souri13-Nov-04 22:18
Kamyar Souri13-Nov-04 22:18 
GeneralHelp me :List control Pin
TooLeeDiN13-Nov-04 21:31
TooLeeDiN13-Nov-04 21:31 
GeneralRe: Help me :List control Pin
Ravi Bhavnani13-Nov-04 23:12
professionalRavi Bhavnani13-Nov-04 23:12 
GeneralRe: Help me :List control Pin
gamitech15-Nov-04 19:52
gamitech15-Nov-04 19:52 
QuestionHow to read a serial mouse? Pin
Anonymous13-Nov-04 17:17
Anonymous13-Nov-04 17:17 
AnswerRe: How to read a serial mouse? Pin
Kamyar Souri13-Nov-04 23:03
Kamyar Souri13-Nov-04 23:03 
AnswerRe: How to read a serial mouse? Pin
John R. Shaw14-Nov-04 9:49
John R. Shaw14-Nov-04 9:49 
QuestionHow to creat exe files? Pin
Dody_DK13-Nov-04 11:47
Dody_DK13-Nov-04 11:47 
AnswerRe: How to creat exe files? Pin
gamitech13-Nov-04 12:11
gamitech13-Nov-04 12:11 
GeneralRe: How to creat exe files? Pin
John R. Shaw13-Nov-04 16:46
John R. Shaw13-Nov-04 16:46 
GeneralRe: How to creat exe files? Pin
VikramDelhi13-Nov-04 23:45
VikramDelhi13-Nov-04 23:45 
GeneralRe: How to creat exe files? Pin
Dody_DK14-Nov-04 0:45
Dody_DK14-Nov-04 0:45 
GeneralRe: How to creat exe files? Pin
ThatsAlok14-Nov-04 18:49
ThatsAlok14-Nov-04 18:49 
GeneralRe: How to creat exe files? Pin
Dody_DK15-Nov-04 4:06
Dody_DK15-Nov-04 4:06 
GeneralRe: How to creat exe files? Pin
gamitech15-Nov-04 19:50
gamitech15-Nov-04 19:50 

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.