Solved

Cursor problems

Posted on 1997-08-27
2
229 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumDigits challenge 9 150
sumNumber challenge 16 122
isEverywhere  challenge 19 77
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 574
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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