Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Several bitmaps on one SpeedButton?

Status
Not open for further replies.

Totte

Programmer
Jun 6, 2001
317
SE
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.
 
Never mind....

Somehow the wery thing works now and not the other !"#¤¤%&/((/%&## times i did exactly the same.

Did a reboot of the PC for other reasons and started the project, compiled it (no changes) and suddenly it works...

I REALLY like unexplained things (NOT!).

So, forget my post, it was a PC-f***-u*, who to blame i don't know but by default i blame Microsoft!

Totte
Keep making it perfect and it will end up broken.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top