Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to run an app in admin mode in Vista and 7 Pin
Kushagra Tiwari6-Dec-09 19:34
Kushagra Tiwari6-Dec-09 19:34 
GeneralRe: How to run an app in admin mode in Vista and 7 Pin
Patcher3230-Apr-10 11:50
Patcher3230-Apr-10 11:50 
QuestionHow to disable/enable menu items when using CMFCMenuBar in Visual Studio 2008 Feature Pack Pin
Blade_Bao5-Dec-09 20:51
Blade_Bao5-Dec-09 20:51 
AnswerRe: How to disable/enable menu items when using CMFCMenuBar in Visual Studio 2008 Feature Pack Pin
krmed6-Dec-09 5:08
krmed6-Dec-09 5:08 
QuestionRe: How to disable/enable menu items when using CMFCMenuBar in Visual Studio 2008 Feature Pack Pin
Blade_Bao12-Dec-09 1:53
Blade_Bao12-Dec-09 1:53 
QuestionSHGetSpecialFolderPath or SHGetFolderPath Pin
includeh105-Dec-09 9:39
includeh105-Dec-09 9:39 
AnswerRe: SHGetSpecialFolderPath or SHGetFolderPath Pin
LunaticFringe5-Dec-09 9:52
LunaticFringe5-Dec-09 9:52 
GeneralRe: SHGetSpecialFolderPath or SHGetFolderPath Pin
Bram van Kampen5-Dec-09 14:28
Bram van Kampen5-Dec-09 14:28 
GeneralRe: SHGetSpecialFolderPath or SHGetFolderPath PinPopular
David Crow5-Dec-09 17:21
David Crow5-Dec-09 17:21 
AnswerRe: SHGetSpecialFolderPath or SHGetFolderPath Pin
Iain Clarke, Warrior Programmer5-Dec-09 21:04
Iain Clarke, Warrior Programmer5-Dec-09 21:04 
QuestionWhere to call AnimateWindow during DoModal Pin
emmmatty15-Dec-09 0:27
emmmatty15-Dec-09 0:27 
AnswerRe: Where to call AnimateWindow during DoModal Pin
«_Superman_»5-Dec-09 4:55
professional«_Superman_»5-Dec-09 4:55 
QuestionApplication hangs when entering dialog procedure Pin
Sauce!4-Dec-09 22:32
Sauce!4-Dec-09 22:32 
AnswerRe: Application hangs when entering dialog procedure Pin
Sauce!5-Dec-09 3:43
Sauce!5-Dec-09 3:43 
QuestionSHGetSpecialFolderPath Pin
includeh104-Dec-09 22:15
includeh104-Dec-09 22:15 
AnswerRe: SHGetSpecialFolderPath Pin
MsmVc4-Dec-09 23:44
MsmVc4-Dec-09 23:44 
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 

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.