Ok I got that now; I need to make
1) Add resource...
2) Import...
3) save all files
Voila I get the resource.h file, which has a IDC_CURSOR1 defined to 101
But then the following does not show up my cursor:
#include "resource.h"
...
dbChangeCursor(IDC_CURSOR1);
...
I also tried all cursor values from 0 to 150, only 0 and 1 show me the standard cursors (pointer and hourglass), but 101 does not show my custom cursor...
also, in the DBP help is written:
Quote: "
dbChangeMouse
This command will change the cursor that belongs to the mouse pointer. A value of zero uses the applications arrow cursor and a value of one will use the hourglass cursor. Values 2 to 31 are custom cursors that can be specified in the project media section and selected with this command.
"
so the function accepts obviously only values between 2 and 31!
Well I will try now to change the ID of the cursor to 2...
[some minutes later...]
it did not work; I made a new symbol, called it IDC_CURSOR_HAND, assigned value 2 to it, and changed my cursor ID to that symbol.
Saved all files, so resource.h got updated to this: (oh and I changed the next_res_id value too, but that souldn't do any harm)
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by small_tests.rc
//
#define IDC_CURSOR_HAND 2
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 3
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 103
#endif
#endif
then I tried to see if my cursor gets drawn, but NO it doesnt (changemouse(2))... I know the cursor loaded in DBP, so it should work!
So what am I doing wrong??
Thanx for help
barnski
-- I just started with DarkSDK, by translating DBP Projects. --