Hi,
I want to use a png picture in my application and I am using VC++ 2005 Profesional. I can load "xpm" files, using -include file.png- command but I am limited only to 255 colors depth and I need to use a png file as resources in my application. Someone can send me an example how to do that? I dont want load the xpm file in execution time of my application..I want it as part of my exe file.
Thanks..
How to create and use a png resource??? Topic is solved
Hi again
Thanks for the link, I have also read:
http://www.wxwidgets.org/manuals/2.4.2/wx478.htm
where it is explained about use wxrc but I dont have any of these directory:
contrib/src/xrc ; XRC source
contrib/include/wx/xrc ; XRC headers
contrib/samples/xrc ; XRC sample
contrib/utils/wxrc ; XRC resource compiler
contrib/utils/wxrcedit ; XRC editor (in progress)
I have install wxwidgets 2.6.2 using the binary install. And I cann't compile this xrc application... any help?
Thanks again...
Thanks for the link, I have also read:
http://www.wxwidgets.org/manuals/2.4.2/wx478.htm
where it is explained about use wxrc but I dont have any of these directory:
contrib/src/xrc ; XRC source
contrib/include/wx/xrc ; XRC headers
contrib/samples/xrc ; XRC sample
contrib/utils/wxrc ; XRC resource compiler
contrib/utils/wxrcedit ; XRC editor (in progress)
I have install wxwidgets 2.6.2 using the binary install. And I cann't compile this xrc application... any help?
Thanks again...
Hi,
XRC has now been incorporated into the mainstream of wxWidgets, so it isn't in contrib any longer and you don't need to compile it separately.
Try http://www.wxwindows.org/manuals/2.6.2/ ... ource.html instead of the 2.4.2 version.
Regards,
David
XRC has now been incorporated into the mainstream of wxWidgets, so it isn't in contrib any longer and you don't need to compile it separately.
Try http://www.wxwindows.org/manuals/2.6.2/ ... ource.html instead of the 2.4.2 version.
Regards,
David
Hi David,
Thanks for you explanation. I can understand the class wxXmlResource but how I crate a resource file? not for gui controls for png files?
If you can give me any example step by step for wxwidgets 2.6.2 I will appreciate it.
Another question, I have added the head < wx/mstream.h > into my application but I don't know to which xxx.lib belongs. Who can I know for a single wxXXX.h its wxXXX.lib? Its compile the header but the linker doesn't work because I don't know wich xxx.lib I need.
Thanks...
Thanks for you explanation. I can understand the class wxXmlResource but how I crate a resource file? not for gui controls for png files?
If you can give me any example step by step for wxwidgets 2.6.2 I will appreciate it.
Another question, I have added the head < wx/mstream.h > into my application but I don't know to which xxx.lib belongs. Who can I know for a single wxXXX.h its wxXXX.lib? Its compile the header but the linker doesn't work because I don't know wich xxx.lib I need.
Thanks...
This is from the above link:how I crate a resource file? not for gui controls for png files?
Code: Select all
<?xml version="1.0"?>
<resource version="2.3.0.1">
<object class="wxBitmap" name="FIRST_IMG">first.gif</object>
<object class="wxBitmap" name="SECOND_IMG">second.jpg</object>
</resource>
I did it
Thanks..
I found a solution more eficient by embedding png images to C vectors instead of use xrc files and all the clases necessary to handle this type of resources.
thanks for everything, its help me to find the best solution for me.
I found a solution more eficient by embedding png images to C vectors instead of use xrc files and all the clases necessary to handle this type of resources.
thanks for everything, its help me to find the best solution for me.