[VB.NET]windows service中如何读取注册表
来源:互联网 发布:华信在线网络贷款 编辑:程序博客网 时间:2024/06/04 19:20
<script type="text/javascript"><!--google_ad_client = "pub-8333940862668978";/* 728x90, 创建于 08-11-30 */google_ad_slot = "4485230109";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
windows service中如何读取注册表
我的程序调用api函数来读取注册表,但一启动就出错,该如何解决?
__________________________________________________________________________
.NET中不用API来读注册表了,那个API可能不支持了吧。
__________________________________________________________________________
Dim readValue As String
readValue = My.Computer.Registry.GetValue( "HKEY_CURRENT_USER/Software/MyApp ", "Name ", Nothing)
MsgBox( "The value is " & readValue)
__________________________________________________________________________
又如何获取服务程序的路径?
__________________________________________________________________________
程序EXE文件的存放路径是
Application.StartupPath
您可以用
MsgBox(Application.StartupPath)
看一下,是不是您需要的。
__________________________________________________________________________
windows service中如何读取注册表
我的程序调用api函数来读取注册表,但一启动就出错,该如何解决?
__________________________________________________________________________
.NET中不用API来读注册表了,那个API可能不支持了吧。
__________________________________________________________________________
Dim readValue As String
readValue = My.Computer.Registry.GetValue( "HKEY_CURRENT_USER/Software/MyApp ", "Name ", Nothing)
MsgBox( "The value is " & readValue)
__________________________________________________________________________
又如何获取服务程序的路径?
__________________________________________________________________________
程序EXE文件的存放路径是
Application.StartupPath
您可以用
MsgBox(Application.StartupPath)
看一下,是不是您需要的。
__________________________________________________________________________
- [VB.NET]windows service中如何读取注册表
- VB.NET中访问注册表
- net中如何调试Windows Service应用程序
- VB.net 如何从文件中读取图像
- VB.NET中注册表常用操作
- VB.NET中快速访问注册表技巧
- VB读取注册表
- VB中如何实现注册表的读写
- VB.NET写注册表
- VB.NET 操作注册表
- vb.net操作注册表
- VB.NET写注册表
- [VB.NET]读写注册表
- c#创建windows service示例以及在asp.net中如何控制windows service
- c#创建windows service示例以及在asp.net中如何控制windows service
- java读取windows注册表
- .net读取注册表
- WINCE.NET中如何实现HIVE注册表
- [VB.NET]vs2005下怎么读取app.config?
- Netfilter实现机制分析
- [VB.NET]往数组尾部加一项的方法是什么方法?
- [VB.NET]怎样设置TabControl的某个选项卡不可见?在线等
- [VB.NET].NET2005问题
- [VB.NET]windows service中如何读取注册表
- [VB.NET]接口与类
- [VB.NET]ContextMenuStrip 的小问题
- [VB.NET]datagridview的单元格的值为0的时候想显示空,但是提交的时候,空的想转换为0,怎么做?
- [VB.NET]多个窗体启动问题 (vb.net 2005)
- [VB.NET]为什么查询不出数据?
- [VB.NET]关于清空件内容的问题.
- syuebook简易留言本系统
- [VB.NET]点击窗体标题时出现的问题.