Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 18:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB.NET] REG_MULTI_SZ

Discussion on [VB.NET] REG_MULTI_SZ within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 2010
Join Date: Jul 2012
Posts: 1,107
Received Thanks: 304
[VB.NET] REG_MULTI_SZ

Hallo,
Ich arbeite grad an nem Visual Basic Projekt und habe ein Problem.

Gibt es eine Möglichkeit REG_MULTI_SZ Schlüssel zu erstellen?
Was aktuelles finde ich leider nicht.

REG_SZ Schlüssel funktionieren ohne Probleme.
nc0. is offline  
Old 12/26/2012, 00:06   #2


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Arrow General Coding -> .NET Languages

#moved
MrSm!th is offline  
Thanks
1 User
Old 12/26/2012, 03:57   #3



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
PHP Code:
    Public Function NetReadMultiSZ(ByRef strhKey As StringByRef strSubKey As StringByRef strValueName As StringByRef strRetVal() As String) As Integer
       On Error 
GoTo NetERROR
       Dim strKey 
As String strhKey "\" & strSubKey
       strRetVal = My.Computer.Registry.GetValue(strKey, strValueName, ERROR_FAILED)
       Return ERROR_SUCCESS '0
       Exit Function
    NetERROR:
       Return ERROR_FAILED 'Custom error -999
    End Function 
Und der Aufruf:
PHP Code:
    Dim strRet() As String Nothing
     
    
Case butMultiSz_2.Name 'Read a REG_MULTI_SZ.
       txtMsgs.Text = NetReadMultiSZ(hKeyString, (txtSubKey.Text), (txtValueName.Text), strRet)
       If strRet Is Nothing Then Exit Sub
       For i As Integer = 0 To strRet.Length - 1
          txtMsgs.Text = txtMsgs.Text & vbCrLf & Trim$(strRet(i))
       Next 
Damit solltest du eigendlich wissen was zu machen ist.
Sedrika is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 18:36.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.