Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

INIファイルのセクションの検索について

16 views
Skip to first unread message

mancl

unread,
May 18, 2007, 2:38:01 AM5/18/07
to
一つ質問があります
自動的に「INI」ファイルのセクションを検索するのは、
どうしますか?

下記の二つのAPI関数をImportしても検索できないようです
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string
section, string key, string val, string filePath);
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section, string
key,string def, StringBuilder retVal, int size, string filePath);

どちら様、検索方法を教えていただけないでしょうか?
ありがとうございました。

Takeshi SHIGIHARA

unread,
May 18, 2007, 3:25:11 AM5/18/07
to
英語のサイトですが、良いサイトがあります。
http://pinvoke.net/

以下にINIファイルのセクションを取得する方法があります。
http://pinvoke.net/default.aspx/kernel32/GetPrivateProfileString.html
http://www.pinvoke.net/default.aspx/kernel32/GetPrivateProfileSection.html
http://www.pinvoke.net/default.aspx/kernel32/GetPrivateProfileSectionNames.html

--
----- Takeshi SHIGIHARA
cyg...@tka.att.ne.jp -----
うまい、早い、安い/2つだけ選べ--RFC1925.

mancl

unread,
May 18, 2007, 4:07:03 AM5/18/07
to
下記のサイトにての方法によって
取得できました。

ほんとうにありがとうございました。

0 new messages