일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- django
- MEAN Stack
- Python
- Visual Studio Code
- 티스토리 초대장
- 딥러닝
- tensorflow
- 윈도우10
- MSSQL
- vscode
- M2M
- 장고
- 자본주의
- scrapy
- 크롤링
- pymssql
- matplot
- PYTHON MSSQL
- 파이썬
- c#
- rs485
- MSSQL PYTHON
- 오라클
- 텐서플로우
- oracle
- sql developer
- MX Component
- Serial
- rs422
- windows10
Archives
- Today
- Total
안까먹을라고 쓰는 블로그
[VB6.0] INI 읽고/쓰기 본문
반응형
'사용자정의INI 읽기.쓰기 Public Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" _ (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, _ ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long Public Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" _ (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, _ ByVal lpFileName As String) As Long 'INI 값 읽기 Public Function INIRead(Session As String, Key As String, inifile As String) As String Dim lngRet As Long Dim strValue As String * 1024 Dim temp As String On Error GoTo INIRead_Error lngRet = GetPrivateProfileString(Session, Key, "", strValue, 1024, inifile) If Len(IntRet) = 0 Then End If INIRead = Left(strValue, InStr(strValue, Chr(0)) - 1) Exit Function INIRead_Error: End Function 'INI 값 쓰기 Public Function INIWrite(Session As String, Key As String, Data As String, inifile As String) As String Dim lngRet As Long lngRet = WritePrivateProfileString(Session, Key, Data, inifile) End Function
반응형
'Language > VB 6.0' 카테고리의 다른 글
[Trouble Shooting] 오류 6 'MSDATASRC.DataSource' 형식이 참조되지 않은 어셈블리에 정의되었습니다 (0) | 2016.11.17 |
---|---|
Windows7 vb6.0 배포시 DB연결오류 (0) | 2015.12.10 |
[VB6.0] VB_Socket통신 (Server) (0) | 2012.09.01 |
[VB6.0] VB_Socket통신 (Client) (3) | 2012.09.01 |
Comments