PrivateProfileString and http

U

Ulf Nilsson

Hi,
I would like to read a file (av.ini) that is placed in a http://-address
(http://www.microsoft.com/_test/ms.ini - = fake address!!)

The code:
sTemp = PrivateProfileString("http://www.microsoft.com/_test/ms.ini", "MS",
"Name_UK")

I have full access to ms.ini-file and the directory, but still gets error:
"-2147467259 (80004005)"

It seems to me that I cannot use PrivateProfileString to access files on a
http-site, but only Registry and ini-files on network. I hope I'm wrong.

// Ulf
 
J

Jonathan West

Ulf Nilsson said:
Hi,
I would like to read a file (av.ini) that is placed in a http://-address
(http://www.microsoft.com/_test/ms.ini - = fake address!!)

The code:
sTemp = PrivateProfileString("http://www.microsoft.com/_test/ms.ini",
"MS",
"Name_UK")

I have full access to ms.ini-file and the directory, but still gets error:
"-2147467259 (80004005)"

It seems to me that I cannot use PrivateProfileString to access files on a
http-site, but only Registry and ini-files on network. I hope I'm wrong.

// Ulf

You're not wrong. You would need to download the file first, and then access
the local copy.
 

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