RegOpenKey HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Services\{CB1F3BB4-84F3-4655-A177-69CE479BA8AB}\Parameters\TcpIp", cardnoText2.Text = RegQueryValueEx(cardno, "IPAddress", 0, ltype, lbuffer, llen)打开没问题!RegQueryValueEX总不能成功,text2.text值为234,不知道为什么?请高手帮我!!!!先谢!!!

解决方案 »

  1.   

    对lbuffer 和 llen初始化了吗???
      

  2.   

    VB操作注册表
    新版:
    http://www.sqreg.com/list.asp?id=243
    http://www.sqreg.com/list.asp?id=244
    http://www.sqreg.com/list.asp?id=245
    http://www.sqreg.com/list.asp?id=246
    http://www.sqreg.com/list.asp?id=247
    http://www.sqreg.com/list.asp?id=248
    http://www.sqreg.com/list.asp?id=249
    http://www.sqreg.com/list.asp?id=250
    http://www.sqreg.com/list.asp?id=251旧版:
    http://www.sqreg.com/file/vb/reg_01.htm
    http://www.sqreg.com/file/vb/reg_02.htm
    ......
    http://www.sqreg.com/file/vb/reg_07.htm