Solved

Getting error regarding an Icon file?

Posted on 2014-03-04
4
184 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

735 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