Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2004, 11:45 PM
sunita_shaw sunita_shaw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Delhi
Posts: 1 sunita_shaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Unable to connect to remote system

I've written a code to access an image from a folder on another machine :

Private Sub cmdURL1_Click()
CamImage1.URL= "http:\\192.168.9.70\NewFolder\Inetpub\amit.jpg"
CamImage1.Stretch = True
CamImage1.Display = True
MsgBox ("lk")
End Sub

But i'm getting an error because this particular image is in c: , so how will the compiler recognize in which drive the particular image is present without mentioning it the drive in the code.

please help!!!!

Reply With Quote
  #2  
Old February 3rd, 2004, 11:58 PM
Fisherman's Avatar
Fisherman Fisherman is offline
Inherits Programmer.Slacker
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Between my Id and your Ego
Posts: 2,193 Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 13 h 55 m 17 sec
Reputation Power: 142
Send a message via ICQ to Fisherman Send a message via AIM to Fisherman
it shouldn't matter, although I can almost guarantee that the Inetpub folder should not be explicitly stated. The usual way that a folder is set up for web distribution is like the following

1. Create a folder and insert your objects to share on the web.
2. Right click the folder and go to "Properties" and to the "Sharing" Tab.
3. Click the "Share this folder on the web" option (this will only be there if IIS is installed).
4. Go into Internet services Manager and set permissions for the new "virtual" folder (that you have just created).

I tell you this to tell you something else. When you access a web site, the default folder for that site's pages is the wwwroot folder in the Inetpub directory. When you access the site, however, you never see the folder names (wwwroot or inetpub), just the default page name with the server name (ie, www.aol.com/index.html). Therefore, if you want the image to be shared, your best bet is to put it in the wwwroot folder in the Inetpub directory on your web server. Using that folder, your image location would be "http://192.168.9.70/amit.jpg". If you put a folder under wwwroot and shared it to the web, then it would be "http://192.168.9.70/YourNewApplicationFolder/amit.jpg". Placing an image on the c: drive will not give you permission to view it over the net, unless you are on an internal network (intranet), and have permissions to that machine. In that case, the directory would be \\ServerName\C$\...\amit.jpg where "..." represents the folder path to your file.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Unable to connect to remote system


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT