惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
A
About on SuperTechFans
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - 35号房客

从Window共享服务器上注销登陆 MDK 10.1版,简单硬盘安装法(图形界面) ORACLE_SID在Linux平台是否大小敏感?是! oracle 9i on redhat as3,应该安装的rpm start isqlplus&em of oracle 通过ftp修改帐户密码 学会将SYS_GUID和序列作为主关键字 How can I make Yahoo! Mail my default email application? Quick .Net File Download Security 如何让win XP实现自动登陆 关于yahoo邮箱如何开通POP access服务 Installing the FrontPage Hit Counter Web Bot ORACLE的启动和关闭 Install Tomcat As windows service Twip&px 我的pg上的上,sql-server-style的new_uuid 可能你没有注意的Exception的属性 用c#获取本机mac(通过dll调用) 答谢cnblogs.com:散两个gmail邀请
用vb6读写INI文件的模块
35号房客 · 2004-10-12 · via 博客园 - 35号房客

Attribute VB_Name = "Module1"
Option Explicit

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
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


Public Function ReadINI(ByVal Section As String, ByVal Key As String) As String
    Dim x As Long, Buff As String * 128, i As Integer
    x = GetPrivateProfileString(Section, Key, "", Buff, 128, App.Path + "TMPlayer.ini")
    i = InStr(Buff, Chr(0))
    ReadINI = Trim(Left(Buff, i - 1))
End Function
Public Function WriteINI(ByVal Section As String, ByVal Key As String) As String
    Dim x As Long, Buff As String * 128, i As Integer
    x = WritePrivateProfileString(Section, Key, "", Buff, 128, App.Path + "TMPlayer.ini")
    i = InStr(Buff, Chr(0))
    WriteINI = Trim(Left(Buff, i - 1))
End Function