일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 오라클
- oracle
- matplot
- rs485
- c#
- 크롤링
- Serial
- MX Component
- tensorflow
- 딥러닝
- MSSQL
- windows10
- django
- sql developer
- 티스토리 초대장
- MEAN Stack
- MSSQL PYTHON
- 윈도우10
- vscode
- 장고
- Visual Studio Code
- 파이썬
- 텐서플로우
- PYTHON MSSQL
- pymssql
- 자본주의
- rs422
- Python
- scrapy
- M2M
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