Solved

Cursor problems

Posted on 1997-08-27
2
235 Views
Last Modified: 2013-11-20
Why, when i create a new cursor resource(importing it from the windows cursors), i receive an "Debug assertion failed" when i load that cursor resource(with LoadCursor function) ?
0
Comment
Question by:mguedes
2 Comments
 
LVL 3

Accepted Solution

by:
Melange earned 0 total points
ID: 1305011
You should be using "LoadStandardCursor" to access a predefined Windows cursor. LoadStandardCursor calls the API LoadCursor with NULL as the instance handle, while LoadCursor attempts to figure out which exe or dll the requested resource is located in. It will use this handle in the call to the ::LoadCursor API.

0
 

Author Comment

by:mguedes
ID: 1305012
This answer do not response to my question because i need a personalized cursor. Thanks anyone for the response.

PS: I find the key of the problem: I have loading the cursor resource in the construct of the WINAPP and in that moment the resources are not disponible!!!!!  
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 55
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 511
sum67 challenge 35 115
canBalance challenge 34 104
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question