Microsoft visual - update image bug

Firstly let me say that I know nothing about microsoft visual studio. An ex collague of mine however, built a browser in C++ and there are two images used by the browser that I am trying to update.

They are two small .bmp images. When I swap them in the project folder for new images that I've created, giving them the same dimensions and file names, and then try to run the project, I get the following message: microsoft visual studio c runtime library has detected a fatal error

When I replace the original images into the project folder, and run the project, it works fine.

Am I missing something?
brettacvhAsked:
Who is Participating?
 
sarabandeConnect With a Mentor Commented:
is the size in bytes also identically?

can you open the second bitmap with resource editor?

if not you may compare them with Visual Studio hex editor.

Sara
0
 
mrwad99Commented:
- What version of Visual Studio are you using?  6.0?  2003?  2005?

You should also make sure that the bitmaps are of the same bit depth; I think you can get away with up to 24bit, but check the current/new bit depth via the file properties in Windows Explorer and ensure they are the same.
0
 
sarabandeCommented:
what tool did you create the new images with?

try to open them in visual studio resource editor.

Sara
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
brettacvhAuthor Commented:
I'm using Visual Studio 2008 and made the new images in Photoshop CS5
0
 
mrwad99Commented:
And the bit depth of the new images compared to the bit depth of the old images is????
0
 
brettacvhAuthor Commented:
How do I check that?
0
 
sarabandeCommented:
first you should see it at the size. a deeper bit depth should lead to a significant growth of file size.

you also should find a menu in photoshop where the bit depth can be seen and changed.

you should try to open the bitmap file in visual studio. if it can't open it in the resource editor photoshop perhaps has added some new features to the file whcih you would need to remove using a different tool or using a different way of storing mode in photoshop.

Sara


0
 
mrwad99Commented:
>> you should try to open the bitmap file in visual studio.

Not all bitmaps will open in the resource editor, even though they have been correctly loaded.  

>> How do I check that?

As I said in my first post,

"check the current/new bit depth via the file properties in Windows Explorer and ensure they are the same".  

Right click file->select properties, have a look at the Summary tab and report the bit depth please.
0
 
brettacvhAuthor Commented:
Both files are identical:

64 x 66 px
24 - bit depth
12.4kb
0
 
brettacvhAuthor Commented:
I'll give that a try thanks.
0
 
James MurrellProduct SpecialistCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.