Hésitations sur LoadFromResourceName...
Bonjour,
J'ai du rater un chapitre pour 'LoadFromResourceName' puisque je n'obtiens rien de bon....
J'ai donc :
. ouvert l'editeur d'images
. fait fichier->ouvrir->projet.res correspondant a mon projet
. puis sommaire->nouvelle->bitmap
. j'ai créer la bitmap
. enregistré sous 'FONDFICHE'
. refermé tout ca
Puis j'appelle :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
Graphics::TBitmap *pGraph = new Graphics::TBitmap();
try
{
pGraph->LoadFromResourceName((int)HInstance, "FONDFICHE");
pGraph->TransparentMode = tmAuto;
MainToolT->Canvas->Draw(0,0,pGraph);
}
catch (...)
{
ShowMessage("Impossible de charger ou afficher le bitmap");
}
delete pGraph; |
Mais , voila....ca marche pas. Il ne trouve pas l'image... :(
Comme ya pas de mystère en programmation, c'est surement moi qui a fait qqchose de travers....si qqun a une petite idée, merci d'avance.
@ + :wink: