첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

▶ 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")

 

728x90
반응형
그리드형(광고전용)
Posted by icodebroker
TAG ,

댓글을 달아 주세요