GetPrivateProfileString always returns default value

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!
 
Joined
Apr 17, 2011
Messages
1
Reaction score
0
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top