I have a problem reading an .ini file from a web location, when the visual studio is open.
I am trying to open the file using GetPrivateProfileInt, while the .ini file is on the same computer, but is loooked up via a shared directory, like: \\SHARED_DIR\requestedIniFile.ini. the request succeeds. but if I have an open version of Visual Studio (I am using VS 2005 pro, SP1) when Im making the call - the request fails.
If I change the path to be the exact path of the shared location: C:\SHARED_DIR\requestedIniFile.ini - the call succeeds.
We have encountered this problem in 4 different computers, with different .ini files, with different projects open on the VS.
it seems like the VS is blocking the shared dir port, (or maybe the VS source control). but I can't really tell.
Can you think of a reason for it? has anyone encountered this problem?
Thanks,
Koby.
[edit]Spurious Code Block removed - OriginalGriff[/edit]