投稿日 | : 2002/11/25(Mon) 19:04 |
投稿者 | : 魔界の仮面弁士 |
Eメール | : |
URL | : |
タイトル | : Re: GetPrivateProfileString関数で iniファイルが読込めない |
> APIの WritePrivateProfileString 、GetPrivateProfileString関数を使用していますが
> 以下のような症状が出るのですが どなたかご存知無いでしょうか?
OSのライトキャッシュの問題ではないでしょうか。
解決するかどうかはわかりませんが、GetPrivateProfileStringを実行する前に、
WritePrivateProfileString の各パラメータに vbNullStringを指定して、キャッシュを
フラッシュ(キャッシュ上からディスク上への書き込み)させてみては如何でしょうか。
-- 以下、Platform SDK より引用 --
[WritePrivateProfileString]
》 Windows 2000/XP:
》 The system keeps a cached version of the most recent registry file mapping
》 to improve performance. If all the value of all of the parameters are NULL,
》 the function flushes the cache. If all the value of all of the parameters
》 are NULL, the function flushes the cache.