掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
pcharの値をiniファイルに保存・読み込みするには。 (ID:39542)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
DriveComboBoxのDriveプロパティの型はChar型で、pCharではないですね。 簡単に言うとChar型は1文字だけの文字型、pChar型は、文字の指し示す ポインタです。 お望みのことは、手抜きですが、保存の場合 I:=TInifile.Create('C:\Temp\I.ini'); try I.Writestring('xxx', 'yyy', DriveComboBox1.Drive); finally I.Free end 読み込みの場合 I:=TInifile.Create('C:\Temp\I.ini'); try DriveComboBox1.Drive:=I.Readstring('xxx', 'yyy', 'C')[1]; finally I.Free end これでできます。
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.