Skip to content

How to create a custom cursor? #2722

Answered by Marv51
ricd asked this question in Q&A
Jul 11, 2022 · 4 comments · 2 replies
Discussion options

You must be logged in to vote

I had the same issue, my cursors refused to load, but I fixed it like this:

First, To get the .res file in my c# dll, I specify <Win32Resource>MyResources.res</Win32Resource>.
And I removed the <Manifest Include="$(ApplicationManifest)" /> and <ApplicationManifest>app.manifest</ApplicationManifest> properties.
To add the manifest back, I added the manifest to my MyResources.res file, via "Import", and set the type to "RT_MANIFEST".
On the res file I left the the Build Action as "None" and "Copy to Output Directory" as "Do not copy".

Second, I have validated with ResourceHacker that a cursor with the expected id exists in the DLL. I set the cursor ID in the DLL outside of the 1xx range to …

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ricd
Comment options

Comment options

You must be logged in to vote
1 reply
@ricd
Comment options

Answer selected by ricd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants