Hi there!
What do you mean by "add a cursor to a project file"? Add a cursor as a resource?
If so, I guess you could add it to your resource file as an icon and set the cursor to use this icon at runtime.Or try to include it with CURSOR instead of ICON.
By the way: Load the cursor with
HCURSOR LoadCursor(
HINSTANCE hinst, // handle of application instance
LPCTSTR lpszCursor // name string or cursor resource identifier
);
and set it with
SetCursor...
Bye!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here's what I've done
1. I copied hlink.cur to my project directory (Just like I do with icons)
2. I included: IDC_CURSOR1CURSOR "hlink.cur" in my res.rc file.
3. I included #define IDC_CURSOR1100 in my resource.h file
When Itry to compile I get the following message:
[Resource Error] can't open cursor file 'hlink.cur': No such file or directory
Any suggestions are appreciated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I add a cursor file to a project?
Hi there!
What do you mean by "add a cursor to a project file"? Add a cursor as a resource?
If so, I guess you could add it to your resource file as an icon and set the cursor to use this icon at runtime.Or try to include it with CURSOR instead of ICON.
By the way: Load the cursor with
HCURSOR LoadCursor(
HINSTANCE hinst, // handle of application instance
LPCTSTR lpszCursor // name string or cursor resource identifier
);
and set it with
SetCursor...
Bye!
Here's what I've done
1. I copied hlink.cur to my project directory (Just like I do with icons)
2. I included: IDC_CURSOR1CURSOR "hlink.cur" in my res.rc file.
3. I included #define IDC_CURSOR1100 in my resource.h file
When Itry to compile I get the following message:
[Resource Error] can't open cursor file 'hlink.cur': No such file or directory
Any suggestions are appreciated!