473,651 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Images problem

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

Nov 17 '05 #1
2 1105
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.Direc tory.GetCurrent Directory() to programmaticall y 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

"Visually Seen #" <al************ *****@gmail.com > wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
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

Nov 17 '05 #2
Dom
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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
332
by: Anavim | last post by:
Hi, I have a really wired behavior in my asp.net application. Little background, I have a base pages which contains about 17 images lying around (create a circle) and this page contains a control where I'm presenting my pages content.
3
1322
by: Dave | last post by:
Hi, I have an app that uses rollover images, but the images are still pulled from the web server during a mouseover instead of being pulled from memory. The code is as follows: the javascript: <script language="JavaScript"> function MM_findObj(n, d) {
3
3820
by: Simon | last post by:
This problem has been driving me mad for months.... Seen a few posts on forums about it but no answers... No mention on MSDN etc. XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a nutshell when testing my ASP.NET (localhost) apps images randomly don't load on the page. Examining the IIS logfile shows the missing images give 401 or 403 errors. Here's an example - 10:15:47 127.0.0.1 GET...
4
2498
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images throughout using a relative directory structure, such as 'images/topbanner.jpg'. I tried changing this to ~/images/topbanner.jpg and .../images/topbanner.jpg, but this didn't work locally so I didn't even bother trying it out remotely. Tthe problem...
5
2725
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
10
2319
by: Neo Geshel | last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress 2005. Why? Because I can. Because I will gain experience. The one thing that has me stumped at square one is inline images. That is, images inline with the actual content of the blog itself. Is there an example that I can be pointed to, where I can examine some code and figure out how to do this? Frankly I haven't got a clue, aside from breaking the content up into...
9
3824
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web site for a small club I belong to and one of the features I would like to include is the ability to allow users to upload image files. unfortunately the servers web root www folder only allows READ and EXECUTE permissions, which makes it...
12
3849
by: John Kotuby | last post by:
Hi all, Maybe this is a simple problem found in ASP.NET 2.0 course 101, but I must have missed it. When I create a page in Visual Web Developer and use URLs like "/images/picture.gif " or a link like <a href="../../Search/page.aspx">, everything works fine as long as I publish the site to a root web like http://localhost. However, I am developing on my local C drive in c:\development\project. I
7
1983
by: Keith Hughitt | last post by:
Hi all, I am having trouble preloading images in a javascript application, and was wondering if anyone had any suggestions. Basically I have a bunch of images stored in a database as BLOBs. At any given point in time a subset of those images is displayed on- screen. At certains times I want to swap out those on screen with new ones from the database, and do some as seamlessly as possible. So what I've tried to do is first create Image...
3
3575
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi! This discussion may help other programmers get a better idea of how to save uploaded images through a website. Why? Well currently, I save 3 versions of every uploaded image on my own little website: 1. Small: DOWNsize of original image to be used as a thumbnail. 2. Medium: DOWNsize of original image to be used as user avatars/icons in forums or profiles.
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.