Click here to Skip to main content
15,897,090 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVector Error Pin
Nikesh Jagtap15-Sep-10 21:47
Nikesh Jagtap15-Sep-10 21:47 
AnswerRe: Vector Error PinPopular
Cedric Moonen15-Sep-10 22:04
Cedric Moonen15-Sep-10 22:04 
QuestionError during compilation Pin
arupsarkar15-Sep-10 16:48
arupsarkar15-Sep-10 16:48 
AnswerRe: Error during compilation Pin
Luc Pattyn15-Sep-10 17:16
sitebuilderLuc Pattyn15-Sep-10 17:16 
GeneralRe: Error during compilation Pin
arupsarkar15-Sep-10 18:30
arupsarkar15-Sep-10 18:30 
GeneralRe: Error during compilation Pin
Luc Pattyn16-Sep-10 0:55
sitebuilderLuc Pattyn16-Sep-10 0:55 
GeneralRe: Error during compilation Pin
David Crow16-Sep-10 2:55
David Crow16-Sep-10 2:55 
QuestionChanging the mouse pointer globally Pin
pjdriverdude15-Sep-10 9:56
pjdriverdude15-Sep-10 9:56 
I am trying to load a cursor globally using cursors made in VC++ 6.0. However, the loadcursor function is either returning a HCURSOR of zero, or it is returning something completely different from what is in the visual studios resources.

I'm really trying to load a blank cursor (I have a touch screen monitor that has a program that I have no control over loading on it, in which I would still like to hide the mouse pointer). Here's the code below.

Returns a handle of 0:
HCURSOR blankCursor = LoadCursor(NULL, MAKEINTRESOURCE(IDC_CURSOR1)) ; //blank cursor
HCURSOR theCursor = CopyCursor(blankCursor) ;
SetSystemCursor(theCursor, OCR_NORMAL) ;


Loads a random cursor:
HCURSOR blankCursor = LoadCursor(NULL, MAKEINTRESOURCE(IDC_POINTER_COPY)) ; //pointer copy being template in the resource editor
HCURSOR theCursor = CopyCursor(blankCursor) ;
SetSystemCursor(theCursor, OCR_NORMAL) ;


Not sure if it's just some setting I'm missing or what. The two cursors don't have any special settings in their properties, why would one return nothing and the other return something random? Loading the default windows pointers works fine.
GeneralRe: Changing the mouse pointer globally Pin
David Crow15-Sep-10 10:00
David Crow15-Sep-10 10:00 
GeneralRe: Changing the mouse pointer globally Pin
pjdriverdude15-Sep-10 10:40
pjdriverdude15-Sep-10 10:40 
AnswerRe: Changing the mouse pointer globally Pin
pjdriverdude16-Sep-10 5:08
pjdriverdude16-Sep-10 5:08 
Questionfatal error c1020: unexpected #endif [modified] Pin
AmbiguousName15-Sep-10 6:52
AmbiguousName15-Sep-10 6:52 
QuestionRe: fatal error c1020: unexpected #endif Pin
David Crow15-Sep-10 7:11
David Crow15-Sep-10 7:11 
AnswerRe: fatal error c1020: unexpected #endif Pin
Luc Pattyn15-Sep-10 7:18
sitebuilderLuc Pattyn15-Sep-10 7:18 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 19:13
AmbiguousName15-Sep-10 19:13 
GeneralRe: fatal error c1020: unexpected #endif Pin
Luc Pattyn16-Sep-10 0:57
sitebuilderLuc Pattyn16-Sep-10 0:57 
GeneralRe: fatal error c1020: unexpected #endif Pin
David Crow16-Sep-10 2:51
David Crow16-Sep-10 2:51 
AnswerRe: fatal error c1020: unexpected #endif Pin
Richard MacCutchan15-Sep-10 8:37
mveRichard MacCutchan15-Sep-10 8:37 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 19:11
AmbiguousName15-Sep-10 19:11 
GeneralRe: fatal error c1020: unexpected #endif Pin
Richard MacCutchan15-Sep-10 21:56
mveRichard MacCutchan15-Sep-10 21:56 
AnswerRe: fatal error c1020: unexpected #endif Pin
Emilio Garavaglia15-Sep-10 21:37
Emilio Garavaglia15-Sep-10 21:37 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 23:17
AmbiguousName15-Sep-10 23:17 
QuestionBest practice for managing large quantity of hard-coded string in application. Pin
Maximilien15-Sep-10 4:17
Maximilien15-Sep-10 4:17 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Aescleal15-Sep-10 5:28
Aescleal15-Sep-10 5:28 
GeneralRe: Best practice for managing large quantity of hard-coded string in application. Pin
Maximilien15-Sep-10 8:19
Maximilien15-Sep-10 8:19 

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.