Re: Colour Cursors

new topic     » goto parent     » topic index » view thread      » older message » newer message

>
> Oooh I've got it working!  I downloaded a DLL viewer and
> found that there
> was no LoadCursorFromFile in user32.dll - but there was a
> LoadCursorFromFileA (which works) and a LoadCursorFromFileW
> (which doesn't).
> What's the difference between them and why do you have to go
> to such methods
> to find out what they're *actually* called?  Anyway here's a
> demo for the
> curious.

As Derek mentioned, it's the difference between ASCII and Unicode
characters.  I don't know of any surefire method to determine this in every
case, but a combination of Quickview'ing a DLL, looking at the source code
header (winuser32.h, in this case), looking at other sources of
documentation (Win32.hlp, MSDN, etc), and Trial and Error(tm) seem to cover
it.  Trial and Error seems to be quicker quite often, as long as you know
that sometimes functions have the 'A/W' suffix, and sometimes have an 'x'
prefix.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu