hi everyone,

i have sort of a beginners problem:
i don't succeed in fully including a bitmap into my project.
when i execute 'add existing item' or 'add itmap' vstudio
does the job. it's also added in resource.h as an IDB_BITMAPx.
however there are 2 problems:
the bitmap isn't shown in the editor, only an empty grid, and
i can't use it (IDB_BITMAPx) in my splash code.
also: when i change the path+name in (resource)properties,
nothing happens. REBUILD solution doesn't help either.
what am i doing wrong?
(by the way: i already have one bitmap inside my project.
however, i included it a long time ago, and i don't know
what i'm doing wrong at present.)

regards,

marc

Re: including .bmp in resource.h by David

David
Thu Jan 10 11:44:32 CST 2008


"Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
news:478650a4$0$25493$ba620dc5@text.nova.planet.nl...

> hi everyone,
>
> i have sort of a beginners problem:
> i don't succeed in fully including a bitmap into my project.
> when i execute 'add existing item' or 'add itmap' vstudio
> does the job. it's also added in resource.h as an IDB_BITMAPx.
> however there are 2 problems:
> the bitmap isn't shown in the editor, only an empty grid, and
> i can't use it (IDB_BITMAPx) in my splash code.
> also: when i change the path+name in (resource)properties,
> nothing happens. REBUILD solution doesn't help either.
> what am i doing wrong?
> (by the way: i already have one bitmap inside my project.
> however, i included it a long time ago, and i don't know
> what i'm doing wrong at present.)

It sounds like you have created a new bitmap rather than importing a new
one.

If you get the solution view of the project and

right click on the .rc file
choose "open With"
choose "source code (text) editor"

you can look at the source.


It should include a line of the form

IDB_BITMAPn BITMAP "res\\ mybitmap.bmp"

I suspect you have created a new .bmp file and included that.

Dave

--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm



Re: including .bmp in resource.h by Starglider

Starglider
Thu Jan 10 12:44:26 CST 2008

thanks dave,

but i need more info.

marc


"David Webber" <dave@musical-dot-demon-dot-co.uk> schreef in bericht
news:%23xj$GC7UIHA.1212@TK2MSFTNGP05.phx.gbl...
>
> "Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
> news:478650a4$0$25493$ba620dc5@text.nova.planet.nl...
>
>> hi everyone,
>>
>> i have sort of a beginners problem:
>> i don't succeed in fully including a bitmap into my project.
>> when i execute 'add existing item' or 'add itmap' vstudio
>> does the job. it's also added in resource.h as an IDB_BITMAPx.
>> however there are 2 problems:
>> the bitmap isn't shown in the editor, only an empty grid, and
>> i can't use it (IDB_BITMAPx) in my splash code.
>> also: when i change the path+name in (resource)properties,
>> nothing happens. REBUILD solution doesn't help either.
>> what am i doing wrong?
>> (by the way: i already have one bitmap inside my project.
>> however, i included it a long time ago, and i don't know
>> what i'm doing wrong at present.)
>
> It sounds like you have created a new bitmap rather than importing a new
> one.
>
> If you get the solution view of the project and
>
> right click on the .rc file
> choose "open With"
> choose "source code (text) editor"
>
> you can look at the source.
>
>
> It should include a line of the form
>
> IDB_BITMAPn BITMAP "res\\ mybitmap.bmp"
>
> I suspect you have created a new .bmp file and included that.
>
> Dave
>
> --
> David Webber
> Author of 'Mozart the Music Processor'
> http://www.mozart.co.uk
> For discussion/support see
> http://www.mozart.co.uk/mozartists/mailinglist.htm
>
>



Re: including .bmp in resource.h by David

David
Fri Jan 11 08:13:28 CST 2008


"Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
news:4786678e$0$19307$ba620dc5@text.nova.planet.nl...

> thanks dave,
>
> but i need more info.

Don't we all? :-(

Dave

--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm


Re: including .bmp in resource.h by Starglider

Starglider
Fri Jan 11 10:45:54 CST 2008


you're suggestion is that i change the path/filename in the .rc file.
1. my question: is it allowed to mess inside a project file?
2. can anyone give me the std. sequence for inserting an
existing bitmap?


"David Webber" <dave@musical-dot-demon-dot-co.uk> schreef in bericht
news:e5bVofGVIHA.536@TK2MSFTNGP06.phx.gbl...
>
> "Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
> news:4786678e$0$19307$ba620dc5@text.nova.planet.nl...
>
>> thanks dave,
>>
>> but i need more info.
>
> Don't we all? :-(
>
> Dave
>
> --
> David Webber
> Author of 'Mozart the Music Processor'
> http://www.mozart.co.uk
> For discussion/support see
> http://www.mozart.co.uk/mozartists/mailinglist.htm



Re: including .bmp in resource.h by David

David
Fri Jan 11 15:39:22 CST 2008


"Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
news:47879d49$0$25477$ba620dc5@text.nova.planet.nl...

> you're suggestion is that i change the path/filename in the .rc file.

Well that's one possibility, though I only suggested that you check it was
the right one.

> 1. my question: is it allowed to mess inside a project file?

Mess, no. Edit carefully - no reason why not. :-)

It's just a form of source code.

[Be careful about inserting new identifiers as the system keeps track of
these.]

> 2. can anyone give me the std. sequence for inserting an
> existing bitmap?

In VS 2005:

Select the resource view
Right click on the .rc file in the list
Add Resource
Import...

ought to do it.

Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm


Re: including .bmp in resource.h by Starglider

Starglider
Fri Jan 11 19:02:19 CST 2008

in principle i knew the proper sequence,
add resource->bitmap->import.
it should just do the job!!!!

however:
the problem from the start:
i end up with an empty bitmap grid.
(and an empty splash in runtime.)
what's going on here?
an empty bitmap-grid would indicate a new/empty bitmap is created.

marc

"David Webber" <dave@musical-dot-demon-dot-co.uk> schreef in bericht
news:ubcm21JVIHA.4740@TK2MSFTNGP02.phx.gbl...
>
> "Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
> news:47879d49$0$25477$ba620dc5@text.nova.planet.nl...
>
>> you're suggestion is that i change the path/filename in the .rc file.
>
> Well that's one possibility, though I only suggested that you check it was
> the right one.
>
>> 1. my question: is it allowed to mess inside a project file?
>
> Mess, no. Edit carefully - no reason why not. :-)
>
> It's just a form of source code.
>
> [Be careful about inserting new identifiers as the system keeps track of
> these.]
>
>> 2. can anyone give me the std. sequence for inserting an
>> existing bitmap?
>
> In VS 2005:
>
> Select the resource view
> Right click on the .rc file in the list
> Add Resource
> Import...
>
> ought to do it.
>
> Dave
> --
> David Webber
> Author of 'Mozart the Music Processor'
> http://www.mozart.co.uk
> For discussion/support see
> http://www.mozart.co.uk/mozartists/mailinglist.htm
>



Re: including .bmp in resource.h by Starglider

Starglider
Fri Jan 11 19:20:27 CST 2008

i just tried another .bmp:
in 3 clicks it was done.
so, something's wrong with the original .bmp file.
(what could that be?)
the splash doesn't display the new .bmp jet, however....

m


"Starglider 4 (marco)" <rebel-6-out@planet.nl> schreef in bericht
news:478811a1$0$25482$ba620dc5@text.nova.planet.nl...
> in principle i knew the proper sequence,
> add resource->bitmap->import.
> it should just do the job!!!!
>
> however:
> the problem from the start:
> i end up with an empty bitmap grid.
> (and an empty splash in runtime.)
> what's going on here?
> an empty bitmap-grid would indicate a new/empty bitmap is created.
>
> marc
>
> "David Webber" <dave@musical-dot-demon-dot-co.uk> schreef in bericht
> news:ubcm21JVIHA.4740@TK2MSFTNGP02.phx.gbl...
>>
>> "Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
>> news:47879d49$0$25477$ba620dc5@text.nova.planet.nl...
>>
>>> you're suggestion is that i change the path/filename in the .rc file.
>>
>> Well that's one possibility, though I only suggested that you check it
>> was the right one.
>>
>>> 1. my question: is it allowed to mess inside a project file?
>>
>> Mess, no. Edit carefully - no reason why not. :-)
>>
>> It's just a form of source code.
>>
>> [Be careful about inserting new identifiers as the system keeps track of
>> these.]
>>
>>> 2. can anyone give me the std. sequence for inserting an
>>> existing bitmap?
>>
>> In VS 2005:
>>
>> Select the resource view
>> Right click on the .rc file in the list
>> Add Resource
>> Import...
>>
>> ought to do it.
>>
>> Dave
>> --
>> David Webber
>> Author of 'Mozart the Music Processor'
>> http://www.mozart.co.uk
>> For discussion/support see
>> http://www.mozart.co.uk/mozartists/mailinglist.htm
>>
>
>



Re: including .bmp in resource.h by David

David
Fri Jan 11 19:29:24 CST 2008


"Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
news:478815e2$0$13746$ba620dc5@text.nova.planet.nl...

>i just tried another .bmp:
> in 3 clicks it was done.
> so, something's wrong with the original .bmp file.
> (what could that be?)

Look at it in Windows paint or a better graphics program and see!

Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm


Re: including .bmp in resource.h by Starglider

Starglider
Sat Jan 12 17:05:31 CST 2008

all system's are 'go'.

m

"David Webber" <dave@musical-dot-demon-dot-co.uk> schreef in bericht
news:%235bTvqLVIHA.5980@TK2MSFTNGP04.phx.gbl...
>
> "Starglider 4 (marco)" <rebel-6-out@planet.nl> wrote in message
> news:478815e2$0$13746$ba620dc5@text.nova.planet.nl...
>
>>i just tried another .bmp:
>> in 3 clicks it was done.
>> so, something's wrong with the original .bmp file.
>> (what could that be?)
>
> Look at it in Windows paint or a better graphics program and see!
>
> Dave
> --
> David Webber
> Author of 'Mozart the Music Processor'
> http://www.mozart.co.uk
> For discussion/support see
> http://www.mozart.co.uk/mozartists/mailinglist.htm