Results 1 to 4 of 4

Thread: Icons in a DLL

  1. #1

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Question

    I'm using Axialis cursors 4.5 to create my own icons and now I'm wondering if I save my icons into a DLL, How can I get hold of them in VB?
    Like to put an image from the Dll on a toolbarbutton.


    Onerrorgoto

    Dont be to optimistic, the light at the end of the tunnel might be a train

  2. #2
    Guest
    You can create an Icon Library and add then to the library using your program. I don't know if it offers that feature, but Microangello does.

    Another way is to create an ActiveX DLL file and add the icons to a RES file. Then compile the Dll.

  3. #3

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Smile Thank you

    Thank you Megatron.

    But if I make my ActiveX DLL with icons in a res-file, how do I put one icon from the resfile in the DLL on my toolbarbutton or commandbutton?

    Do I use the LoadResPicture() function? if so, how?

    I mean, can I use the index from the resfile in the DLL to define which picture I mean?
    If I already have a res-file in my project, how do I define that I mean the Dll res-file?

    I know that I have many weird Q's but I hope someone will take the time to answer me.

    Again, thank you megatron

    Onerrorgoto

    Dont be to optimistic, the light at the end of the tunnel might be a train

  4. #4
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242
    Hello!

    You can create resource-only dll, but you nead Visual C 4.x and load icons from that DLL. If you want to do it that way, I can help you. I've developed class for loading resources (for now just strings, icons and bitmaps) from resource-only dll. Contact me if you want it.

    Zvonko
    Zvonko Bostjancic
    Ilirska Bistrica, Slovenia
    [email protected]
    Using VS6 Professional with SP3
    Programming mostly in VB and I've started to learn VC++ & MFC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width