Hi...
I am novice in wxwidgets programming. Please help me get through this queries.
Is there any size limit for bitmaps while adding through resource( .rc )file??
also
I want to embed a wave file with my program like its icon and toolbar images.( possibly through resource file )
Resource Bitmap Size Topic is solved
-
- In need of some credit
- Posts: 7
- Joined: Thu Mar 05, 2009 11:37 am
Resource Bitmap Size
wxWidgets 2.4.2 / Windows XP / Borland 5.5
.
.
-
- Moderator
- Posts: 3176
- Joined: Mon Aug 30, 2004 6:55 am
- Location: Germany, Cologne
Hi!
I'm not really sure about this, but I think there is a limit for rc file resources, at least with older VC versions.
To use a wave file in your rc, simply use the WAVE type, like
However, you'll need to define SomeSound. I think it's easier to simply use a number here:
Then you can use wxSound like
For a cross platform solution the problem is that wxSound doesn't load from wxStreams.
I'm not really sure about this, but I think there is a limit for rc file resources, at least with older VC versions.
To use a wave file in your rc, simply use the WAVE type, like
Code: Select all
SomeSound WAVE "c:\mysound.wav"
Code: Select all
123 WAVE "c:\mysound.wav"
Code: Select all
wxSound::Play("#123",wxSOUND_ASYNC);
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
-
- In need of some credit
- Posts: 7
- Joined: Thu Mar 05, 2009 11:37 am