Click here to Skip to main content
15,914,500 members
Home / Discussions / C#
   

C#

 
Questionhow to streaming audio/video ? Pin
hdv21227-Jun-06 14:44
hdv21227-Jun-06 14:44 
AnswerRe: how to streaming audio/video ? [modified] Pin
Mike Poz27-Jun-06 15:03
Mike Poz27-Jun-06 15:03 
AnswerRe: how to streaming audio ? Pin
Divyang Mithaiwala27-Jun-06 18:31
Divyang Mithaiwala27-Jun-06 18:31 
QuestionMaking remoting work between multiple versions of the same assembly [modified] Pin
Luis Alonso Ramos27-Jun-06 14:34
Luis Alonso Ramos27-Jun-06 14:34 
Questioncreating dynamic classes Pin
Manu_8127-Jun-06 13:36
Manu_8127-Jun-06 13:36 
AnswerRe: creating dynamic classes Pin
Guffa27-Jun-06 13:47
Guffa27-Jun-06 13:47 
GeneralRe: creating dynamic classes Pin
Manu_8127-Jun-06 14:23
Manu_8127-Jun-06 14:23 
GeneralRe: creating dynamic classes Pin
Guffa27-Jun-06 18:56
Guffa27-Jun-06 18:56 
GeneralRe: creating dynamic classes Pin
Karl 200027-Jun-06 20:26
Karl 200027-Jun-06 20:26 
GeneralRe: creating dynamic classes Pin
J4amieC27-Jun-06 21:57
J4amieC27-Jun-06 21:57 
AnswerRe: creating dynamic classes Pin
J4amieC27-Jun-06 21:58
J4amieC27-Jun-06 21:58 
AnswerRe: creating dynamic classes Pin
Rob Philpott27-Jun-06 23:15
Rob Philpott27-Jun-06 23:15 
QuestionSerial Communication (Loopback) Pin
Cadence2.027-Jun-06 12:48
Cadence2.027-Jun-06 12:48 
AnswerRe: Serial Communication (Loopback) Pin
led mike27-Jun-06 20:38
led mike27-Jun-06 20:38 
GeneralRe: Serial Communication (Loopback) Pin
Cadence2.028-Jun-06 5:39
Cadence2.028-Jun-06 5:39 
AnswerRe: Serial Communication (Loopback) Pin
Cadence2.028-Jun-06 6:24
Cadence2.028-Jun-06 6:24 
GeneralRe: Serial Communication (Loopback) Pin
led mike28-Jun-06 7:44
led mike28-Jun-06 7:44 
QuestionResolve UNC Names Pin
HahnTech27-Jun-06 12:13
HahnTech27-Jun-06 12:13 
AnswerRe: Resolve UNC Names Pin
Mike Poz27-Jun-06 14:12
Mike Poz27-Jun-06 14:12 
GeneralRe: Resolve UNC Names Pin
HahnTech27-Jun-06 18:44
HahnTech27-Jun-06 18:44 
GeneralRe: Resolve UNC Names Pin
Mike Poz28-Jun-06 8:13
Mike Poz28-Jun-06 8:13 
HahnTech wrote:
One idea I had was to find where windows holds its share info and find the local resource that way.


That's maintained in the registry under HKLM here:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares

You'll find keys with each share name, and their data value contains permissions and local path to the share.

This assumes your use account has the permissions to at least read this information.

HahnTech wrote:
I’ll know in advance the ones that are mobile and set the data stores to be local in the Db.


If you will know in advance what is local and what is remote, then it sounds to me like you need to have some error checking with some "if - else" blocks to deal with when your "directory.exists()" fails to return true.

If(Directory.Exists(\\localhost\c$)
{
Connect(\\localhost\c$\datbase);
}
else
{
//try a possible local path using C:\
or
//pop an error stating that the database is unavailable
}

Either way this is basically an error handling issue where you need to fail gracefully when your "directory.exists" returns false.


Mike Poz
GeneralRe: Resolve UNC Names Pin
HahnTech28-Jun-06 8:30
HahnTech28-Jun-06 8:30 
QuestionInheritance Pin
Besinci27-Jun-06 11:24
Besinci27-Jun-06 11:24 
AnswerRe: Inheritance Pin
Wjousts27-Jun-06 11:31
Wjousts27-Jun-06 11:31 
GeneralRe: Inheritance Pin
Judah Gabriel Himango27-Jun-06 13:05
sponsorJudah Gabriel Himango27-Jun-06 13:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.