Hello,
I would like to load normal and animated cursors (*.cur & *.ani) from memory as I use my own virtual file system. So I can't use the LoadCursorFromFile() function. I tried to use CreateIconFromResourceEx():
// create cursor
tmp = (HCURSOR)CreateIconFromResourceEx((unsigned char*)p, size, false /* create cursor */, 0x00030000, 0, 0, 0);
But this function loads not all cursors, only 6 of my 12 cursors.
If it fails it returns NULL but GetLastError() returns also 0.
loading from .exe file as a resource works fine:
tmp = LoadCursor(hInstance, next_value);
Any other method to load cursors from memory?
Or are there some special cases/problems at cursors I have to check before loading?
Or is there something wrong with my loading method?
Best regards,
Max