Solved

Microsoft visual - update image bug

Posted on 2011-03-06
14
423 Views
Last Modified: 2013-12-14
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?
0
Comment
Question by:brettacvh
  • 4
  • 3
  • 3
  • +1
14 Comments
 
LVL 19

Expert Comment

by:mrwad99
Comment Utility
- 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
 
LVL 32

Expert Comment

by:sarabande
Comment Utility
what tool did you create the new images with?

try to open them in visual studio resource editor.

Sara
0
 

Author Comment

by:brettacvh
Comment Utility
I'm using Visual Studio 2008 and made the new images in Photoshop CS5
0
 
LVL 19

Expert Comment

by:mrwad99
Comment Utility
And the bit depth of the new images compared to the bit depth of the old images is????
0
 

Author Comment

by:brettacvh
Comment Utility
How do I check that?
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 32

Expert Comment

by:sarabande
Comment Utility
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
 
LVL 19

Expert Comment

by:mrwad99
Comment Utility
>> 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
 

Author Comment

by:brettacvh
Comment Utility
Both files are identical:

64 x 66 px
24 - bit depth
12.4kb
0
 
LVL 32

Accepted Solution

by:
sarabande earned 500 total points
Comment Utility
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
 

Author Comment

by:brettacvh
Comment Utility
I'll give that a try thanks.
0
 
LVL 31

Expert Comment

by:James Murrell
Comment Utility
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now