■ INI 파일 항목 값 읽기

----------------------------------------------------------------------------------------------------

▶ INI 파일 내용

 

[Examination]

ExaminationType=5

 

▶ API 선언

 

Declare Function WritePrivateProfileString& Lib "kernel32" Alias "WritePrivateProfileStringA" (strApplicationName As String, strKeyName As String, strKeyDefault As String, strFileName As String)

 

Declare Function GetPrivateProfileString& Lib "kernel32" Alias "GetPrivateProfileStringA" (strApplicationName As String, strKeyName As String, strKeyDefault As String, strReturnValue As String,  lSize As Long, strFileName As String)

 

▶ 함수 호출

 

Call GetPrivateProfileString("Examination", "ExaminationType", "00", strExaminationType, 10, "\examination\setting.ini")

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요