Solved

Cursor problems

Posted on 1997-08-27
2
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 99
windows 10 how make picture as desktop background 2 73
only14 challenge 19 89
wordmultiple challenge 12 170
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

751 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