Click here to Skip to main content
15,895,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHGetSpecialFolderPath Pin
includeh105-Dec-09 9:40
includeh105-Dec-09 9:40 
GeneralRe: SHGetSpecialFolderPath PinPopular
LunaticFringe5-Dec-09 10:10
LunaticFringe5-Dec-09 10:10 
GeneralRe: SHGetSpecialFolderPath Pin
MsmVc6-Dec-09 18:01
MsmVc6-Dec-09 18:01 
AnswerRe: SHGetSpecialFolderPath Pin
Iain Clarke, Warrior Programmer5-Dec-09 3:01
Iain Clarke, Warrior Programmer5-Dec-09 3:01 
QuestionDrive Letters (More than 26 Drives??) Pin
Bram van Kampen4-Dec-09 16:09
Bram van Kampen4-Dec-09 16:09 
AnswerRe: Drive Letters (More than 26 Drives??) Pin
«_Superman_»4-Dec-09 17:38
professional«_Superman_»4-Dec-09 17:38 
AnswerRe: Drive Letters (More than 26 Drives??) Pin
Iain Clarke, Warrior Programmer5-Dec-09 3:05
Iain Clarke, Warrior Programmer5-Dec-09 3:05 
GeneralRe: Drive Letters (More than 26 Drives??) [modified for Typo's] Pin
Bram van Kampen5-Dec-09 14:06
Bram van Kampen5-Dec-09 14:06 
Thanks to Both,


Iain Clarke, Warrior Programmer wrote:
Besides, "26 is enough letters for anyone!"


I wholehartedly Agree. It is not that I am looking for more Drive Letters, I just am trying to anticipate what customers in the field 'might' do. In a nutshell, my Software fishes a 'Path' out of the Registry, and must decide whether this path refers to a file on a Local Drive, or to a file somewhere on the Network.

This is all in aid of a larger design which retrieves timestamps from a designated machine on the network.

My initial approach was that if it is a UNC Name, e.g. '//Server1/Data/MyData.Dat', it refers to a File on the Network, UNLESS the Name of this computer is 'Server1'. and, Alternatively, that if it is of the form 'P:\Application Data\...\MyData.Dat' that it refers to a Local File, UNLESS 'P:\' is a Mapped Drive, which we can determine with GetDriveType.

Now, this 'Junction' stuff seems to throw sand in the above machinery. I had never heard of it, cannot imagine I will ever need it, but, Some future customer somewhere someday just might!
And THEN we have suddenly an obscure bug which causes the time stamp to be incorrect on certain machines (Actually it would retrieve the timestamp successfully from but from the wrong machine, and would give 'Time Server Errors' if this machine were switched of, but that might not be clear at the time! So, I want to trap these situations, both during Setup and at Startup.

Now I'm Stuck!

Maybe I should re-phrase the question as Follows:-

'How do I determine whether a path points to a Local File, or a File on the Network'

Thanks,

Confused | :confused:

Bram van Kampen

modified on Saturday, December 5, 2009 8:13 PM

QuestionRe: Drive Letters (More than 26 Drives??) [modified for Typo's] Pin
David Crow5-Dec-09 17:17
David Crow5-Dec-09 17:17 
GeneralRe: Drive Letters (More than 26 Drives??) [modified for Typo's] Pin
Iain Clarke, Warrior Programmer5-Dec-09 20:59
Iain Clarke, Warrior Programmer5-Dec-09 20:59 
AnswerRe: Drive Letters (More than 26 Drives??) Pin
David Crow5-Dec-09 17:19
David Crow5-Dec-09 17:19 
GeneralRe: Drive Letters (More than 26 Drives??) Pin
Bram van Kampen9-Dec-09 15:48
Bram van Kampen9-Dec-09 15:48 
QuestionAddAceToObjectsSecurityDescriptor problem Pin
RomTibi4-Dec-09 8:01
RomTibi4-Dec-09 8:01 
QuestionHow do I control what files get compiled? Pin
Interrobang4-Dec-09 6:36
Interrobang4-Dec-09 6:36 
AnswerRe: How do I control what files get compiled? [modified] Pin
transoft4-Dec-09 6:45
transoft4-Dec-09 6:45 
GeneralRe: How do I control what files get compiled? Pin
Interrobang4-Dec-09 7:30
Interrobang4-Dec-09 7:30 
GeneralRe: How do I control what files get compiled? Pin
T21024-Dec-09 12:43
T21024-Dec-09 12:43 
AnswerRe: How do I control what files get compiled? Pin
David Crow4-Dec-09 7:54
David Crow4-Dec-09 7:54 
GeneralRe: How do I control what files get compiled? Pin
Interrobang4-Dec-09 9:13
Interrobang4-Dec-09 9:13 
GeneralRe: How do I control what files get compiled? Pin
Bram van Kampen4-Dec-09 16:31
Bram van Kampen4-Dec-09 16:31 
QuestionHelp me use SetROP2 Pin
unistar_kl4-Dec-09 4:20
unistar_kl4-Dec-09 4:20 
AnswerRe: Help me use SetROP2 Pin
«_Superman_»4-Dec-09 4:41
professional«_Superman_»4-Dec-09 4:41 
GeneralRe: Help me use SetROP2 [modified] Pin
unistar_kl4-Dec-09 4:48
unistar_kl4-Dec-09 4:48 
AnswerRe: Help me use SetROP2 - Use ImageViewer Pin
Iain Clarke, Warrior Programmer5-Dec-09 3:08
Iain Clarke, Warrior Programmer5-Dec-09 3:08 
GeneralRe: Help me use SetROP2 - Use ImageViewer [modified] Pin
unistar_kl5-Dec-09 4:18
unistar_kl5-Dec-09 4:18 

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.