I need to use 2 different glyphs on one speedbutton (connect or disconnect) and tried the .RC-Way described in and i get no compiler errors.
But i get: Access violation at address xxxx in module yyy. Read of bla bla. at runtime.
It's where i load the glyph into the speedbutton, if i remove the line:
ButtonConnect->Glyph->LoadFromResourceID((int HInstance,1001);
it runs like a charm.
How to do?
Totte
Keep making it perfect and it will end up broken.
But i get: Access violation at address xxxx in module yyy. Read of bla bla. at runtime.
It's where i load the glyph into the speedbutton, if i remove the line:
ButtonConnect->Glyph->LoadFromResourceID((int HInstance,1001);
it runs like a charm.
How to do?
Totte
Keep making it perfect and it will end up broken.