ressource png/jpg/bmp ..into executable.

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
frenzy
Earned a small fee
Earned a small fee
Posts: 13
Joined: Wed Jan 25, 2023 6:41 pm

ressource png/jpg/bmp ..into executable.

Post by frenzy »

bonjour

j'ai vu plusieurs plusieurs forums mais ça ne répond pas à mon attente: je cherche simplement
un exemple de fichier.cpp / .h ..avec le minimum à faire pour inclure une image(pas un icone.ico)
une image format bmp ou png ou encore jpg dans l'exécutable.
rien de plus
merci d'avance.

Translation from deepl.com:
hello

I have seen several forums but it does not answer my expectation: I am simply looking for
an example of .cpp / .h file ..with the minimum to include an image(not an icone.ico)
an image in bmp or png or jpg format in the executable.
nothing more
thank you in advance.
Last edited by doublemax on Wed Jan 25, 2023 6:49 pm, edited 1 time in total.
Reason: added english translation
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: ressource png/jpg/bmp ..into executable.

Post by doublemax »

Use the source, Luke!
frenzy
Earned a small fee
Earned a small fee
Posts: 13
Joined: Wed Jan 25, 2023 6:41 pm

Re: ressource png/jpg/bmp ..into executable.

Post by frenzy »

merci, il y a une péparation de l'image au format XPM ... tout a l'air bon pour moi. :D
mais je ne sais pas comment trouver le fichier wxInclude.exe #-o
thanks
frenzy
Earned a small fee
Earned a small fee
Posts: 13
Joined: Wed Jan 25, 2023 6:41 pm

Re: ressource png/jpg/bmp ..into executable.

Post by frenzy »

*j'ai oublié de préciser que le liens donné ne répond pas pour l'instant
http://users.skynet.be/towp/wxInclude.zip
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: ressource png/jpg/bmp ..into executable.

Post by doublemax »

Use the source, Luke!
frenzy
Earned a small fee
Earned a small fee
Posts: 13
Joined: Wed Jan 25, 2023 6:41 pm

Re: ressource png/jpg/bmp ..into executable.

Post by frenzy »

merci
il me reste seulement la libHX que je n'arrive pas à obtenir pour compiler hxtools-20221120
frenzy
Earned a small fee
Earned a small fee
Posts: 13
Joined: Wed Jan 25, 2023 6:41 pm

Re: ressource png/jpg/bmp ..into executable.

Post by frenzy »

....all ok ...
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for lastlog.h... no
checking for paths.h... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes

checking for libHX... no
"
configure: error: Package requirements (libHX >= 3.17) were not met:
Package 'libHX', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libHX_CFLAGS
and libHX_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
"
j'ai un petit peu fouillé dans les fichiers et j'ai pas encore trouver
apparement avec msys2 (64)/mingw i think it will hard :/

" je vais vous informer dans quelques jours "

merci
Post Reply