GetPrivateProfileString always returns default value

  • Thread starter Thread starter Tom Hofmann
  • Start date Start date
T

Tom Hofmann

After upgrading from SP2 to SP4 all our network, VB
programs using the GetPrivateProfileString API call to ONE
PARTICULAR w2k server ALWAYS return the default value!

Doing the same thing from a SP2 nachine works fine
Doing it from a SP4 machine to any OTHER server (Also SP4)
works fine

Accessing the INI file from the server console works ok
only if file is specified as C:\<myffile.ini>

It will NOT work if I use \\<server>\c$\<myfile.ini>

All tests done as administrator.

Anyone have a hint on how to fix this?
Thank you!
 
Hi Tom,
Did you manaegd to solve this problem? I encountered a similar problem when VS8 is open on the machine trying to access the ini file.
Thanks,
Sharon.
-----


After upgrading from SP2 to SP4 all our network, VB
programs using the GetPrivateProfileString API call to ONE
PARTICULAR w2k server ALWAYS return the default value!

Doing the same thing from a SP2 nachine works fine
Doing it from a SP4 machine to any OTHER server (Also SP4)
works fine

Accessing the INI file from the server console works ok
only if file is specified as C:\<myffile.ini>

It will NOT work if I use \\<server>\c$\<myfile.ini>

All tests done as administrator.

Anyone have a hint on how to fix this?
Thank you!
 
Back
Top