Board index » cppbuilder » Using Resource Cursors from Library

Using Resource Cursors from Library


2005-02-19 04:20:03 AM
cppbuilder25
Not sure if this is the right place for this but...
I have a graphics library I'm building that I wish to be able to include
in various projects. The library contains a VCL object derived from the
TCustomPanel class. I need to change the cursor for this object at
runtime; however, when I create a resource file containing my custom
cursors and add it to the lib project, I still cannot get them to load
via the LoadCursor function. I consistently get a NULL value returned
when calling this function.
I've tried creating a separate resource file (not named after the
library) with the same results. I'm thinking my HInstance may incorrect
or the resources are not getting linked in properly.
Any thoughts?
Thanks in advance,
Tom Hubbell
 
 

Re:Using Resource Cursors from Library

I don't know about this too much, if at all, so why don't you try and post
on .nativeapi or vclcomponents.using.
--
Jonathan
"Tom Hubbell" < XXXX@XXXXX.COM >wrote in message
Quote
Not sure if this is the right place for this but...

I have a graphics library I'm building that I wish to be able to include
in various projects. The library contains a VCL object derived from the
TCustomPanel class. I need to change the cursor for this object at
runtime; however, when I create a resource file containing my custom
cursors and add it to the lib project, I still cannot get them to load via
the LoadCursor function. I consistently get a NULL value returned when
calling this function.
I've tried creating a separate resource file (not named after the library)
with the same results. I'm thinking my HInstance may incorrect or the
resources are not getting linked in properly.
Any thoughts?

Thanks in advance,

Tom Hubbell

 

Re:Using Resource Cursors from Library

Tom Hubbell < XXXX@XXXXX.COM >wrote:
Quote

Not sure if this is the right place for this but...
Post in the vcl.using group and include sample code.
~ JD
 

{smallsort}