Solved

Cursor problems

Posted on 1997-08-27
2
224 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now