Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting error regarding an Icon file?

Posted on 2014-03-04
4
Medium Priority
?
189 Views
Last Modified: 2014-03-05
I'm getting this error (see attached image) and I don't know where it's being genereated. The file in question does reside in my Resources File.
Screenshot.jpg
0
Comment
Question by:BlakeMcKenna
  • 2
  • 2
4 Comments
 
LVL 40
ID: 39904343
Resource files are regenerated each time you compile. If the image file is no longer available at the original location, the compiler cannot recreate the resource.

The best way to work with external resources is to create a sub-directory in your project, copy all the necessary resources in that directory, and point to that directory for your resources. That way, if the original file is not longer available, or if the project is moved from one computer to another, the referenced file will still be there.
0
 

Author Comment

by:BlakeMcKenna
ID: 39904475
You mentioned in another post it wasn't a good idea to have sub-directories like that because user's could possibly delete them?
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 total points
ID: 39905370
I am talking here about a subdirectory in your project, which won't be installed on the user computer, since the images are incorporated in the application itself through the resource files. This is a directory used by the compiler, not by the application.

I do not remember about that other post, but it was probably because the images were distributed as individual image files, which is not the same thing as resources.
0
 

Author Comment

by:BlakeMcKenna
ID: 39906391
That makes sense...thanks for the clarification James!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

927 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