473,856 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dumb question about "(local)" or "(localhost)".. ..

Should I consider this to work in other locales?

If theServer.Name <> "(local)" and theServer.Name <> "(localhost )"
Then

' Can only use local machine in this version.....

End If
I'm trying to say "if you didn't choose the local machine from the list of
servers returned by the DMO server enumeration function, then you can't
continue". Now, the question is, does M$ return the word (local) or
(localhost) in, say, hebrew for a machine in that locale, or will it always
return the english (local)? Small thing for me to add these strings to my
translated resources, but I'm curious to know the answer.

Cheers


Robin
Nov 21 '05 #1
3 1606
"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
news:d9******** ***********@new s.demon.co.uk:
Should I consider this to work in other locales?
Depends.
If theServer.Name <> "(local)" and theServer.Name <>
"(localhost )"
Then

I'm trying to say "if you didn't choose the local machine from the
list of servers returned by the DMO server enumeration function, then
you can't continue". Now, the question is, does M$ return the word
(local) or (localhost) in, say, hebrew for a machine in that locale,
or will it always return the english (local)? Small thing for me to
add these strings to my translated resources, but I'm curious to know
the answer.


Where does this string originally come from? Who populates theServer.Name?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
Nov 21 '05 #2

Well, I'm using SQLBrowseConnec t from the odbc32.dll in order to populate a
list of available servers. Top of the list is usually "(local)" if there is
an SQL server instance on the same machine as the client.

I'm not sure if SQLBrowseConnec t will put in (hebrew_for_loc al) at the top
of the list otherwise. I'm asking the question but could just as well
install a korean or thai version of windows onto one of my test machines.
In the interests of getting a quick answer though, I'll stick with the
newsgroups for now ;)

Robin

"Chad Z. Hower aka Kudzu" <cp**@hower.org > wrote in message
news:Xn******** *************** ***@127.0.0.1.. .
"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
news:d9******** ***********@new s.demon.co.uk:
Should I consider this to work in other locales?


Depends.
If theServer.Name <> "(local)" and theServer.Name <>
"(localhost )"
Then

I'm trying to say "if you didn't choose the local machine from the
list of servers returned by the DMO server enumeration function, then
you can't continue". Now, the question is, does M$ return the word
(local) or (localhost) in, say, hebrew for a machine in that locale,
or will it always return the english (local)? Small thing for me to
add these strings to my translated resources, but I'm curious to know
the answer.


Where does this string originally come from? Who populates theServer.Name?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/

Nov 21 '05 #3
"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
news:d9******** ***********@new s.demon.co.uk:
Well, I'm using SQLBrowseConnec t from the odbc32.dll in order to
populate a list of available servers. Top of the list is usually
"(local)" if there is an SQL server instance on the same machine as
the client.


Sorry then. I dont know if this is localized on other machines or not.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 21 '05 #4

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

Similar topics

6
73781
by: aa | last post by:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini in php.ini I have: SMTP = localhost SMTP_PORT = 25 SENDMAIL_FROM = NULL SENDMAIL_PATH = "H:\WINNT\system32\" (this is where sendmail.dll is sitting. H is the drive with w2k)
5
2126
by: Chris | last post by:
What is going on here... I have my site running locally on my machine, and when I don't have an internet connection (like when Im on the train) I get this error when I try to open an asp.net project: "The web server reported the following error when attempting to create or open the web project located at the following URL: 'http://localhost'. The server name or address could not be resolved."
4
3594
by: Greg Cyrus | last post by:
Hi, in a Page_Load I use: Response.Redirect("http://localhost/WebApplication3/frmDefault.aspx") Now the IExplorer shows "http://localhost/WebApplication3/frmKopf.aspx" in the adress-field. Is the name "localhost" shown in my ieplorer only - if not how can I rename it (or shouldn't I). Greg.
2
9930
by: Kikoz | last post by:
Hi all. I'm using one PC/XP Pro as my development environment. Its IIS has one default web site, of course, which is the site I'm working on. When some feature is finished I deploy it to my "production" site which is hosted somewhere else. Very common situation, I guess. This app uses email to notify customers of some particular events. Works on production, but sometimes I need to change something in the way those notifications work....
5
1533
by: cashdeskmac | last post by:
I am writing a web application will will be hosted on a few peoples laptops as a local application. It will send e-mails once the user connects to the internet. How can I set up the "Mail.From" field if I don't know the address of the user's laptop? I have managed to get it working on my own machine, but setting the "From" filed to "Localhost" doesn't seem to work. Any suggestions?
10
3753
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server Error in '/QuickStartv20' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file
0
1700
by: . | last post by:
http://daviderognoni.blogspot.com?locawapp - MAIN NEWS =========== * add thread * add "Request" object * new "locawapp_main" function * fixed files.py
1
6523
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
12
2390
by: Jonathan Wood | last post by:
Greetings, I wonder if anyone can help me with this. I have an XP laptop, and a Vista desktop computer. I use the laptop to run software remotely on the desktop using the Remote Desktop Connection software. Everything is working just fine. However, whenever I run an ASP.NET Website project in Visual Studio, the browser pops up a "Connect to localhost"
0
9921
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11065
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
10700
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10795
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9536
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
5763
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5962
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4581
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
2
4177
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.