Images problem

  • Thread starter Thread starter Visually Seen #
  • Start date Start date
V

Visually Seen #

Hey everybody,

I'm doing a project called Science Talent Search, where I had to
research about a topic in which I chose nuclear energy. I chose to
present this as a computer program, and I decided to use C#.

The main problem is: I'm using a bit of animation, by changing the
location of the image file.

Now, the image files are located in a certain directory (let's say
C:\Documents and Settings), so if I ran it on another computer, the
program would not be able to get the write image file, since the
computer wouldn't have the image files in C:\Documents and Settings.

This is a problem especially because on Saturday 9:30 AM Australian
Eastern Standard Time, I have to present this program to 2 judges, and
they will want to be able to run it on their computer.

Could anyone help? (Is there a better way than putting all the image
files in a certain directory, then telling the user to firstly transfer
them into the right directory, before running the program?)

Thanks if you do,

Seen Sharp
 
How do you plan to deploy the program, itself to the judges? XCopy to their
computer, or have them map to a shared folder across a network? Are you
going to eMail it to them and have them copy to their local machine, perhaps
to the desktop?

If they can get to the exe (it is a Windows App - yes?), then why not have
the images deployed in the same folder as the exe? Then you can use
System.IO.Directory.GetCurrentDirectory() to programmatically determine the
exact folder in which the exe is running.... So, if you tell the judges to
copy the exe and all supporting images to one location, everything will
work.

-HTH
 
Are the computers on a network?
Could you put them in a network folder where everyone has access and
specify the path in UNC notation

\\<servername>\path

Otherwise, you could make a setup program and deploy the image files
together with the application (easiest would be into the application
dir).

Hope this helps.
Dom
 
Back
Top