Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    terrornl helped... i need too


    Knower
     Share

    Recommended Posts

    Das mein code zum erstellen einer Ini datei

     

    Private Declare Ansi Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" ( _

    ByVal lpApplicationName As String, _

    ByVal lpKeyName As String, _

    ByVal lpString As String, _

    ByVal lpFileName As String) _

    As Integer

     

    Public Sub SetINIString(ByVal INIFile As String, ByVal Section As String, ByVal Key As String, ByVal Value As String)

    WritePrivateProfileString(Section, Key, Value, INIFile)

    End Sub

     

     

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    WritePrivateProfileString("favoriten", ComboBox1.Text, TextBox1.Text, "c:\omg.ini")

    End Sub

     

    die form hier

    download

     

    meine frage: button 2 soll den von der section "favoriten" , key " combobox1.text" in textbox1 machn wie mache ich das?

     

     

    hatte schon

     

    Private Declare Ansi Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" ( _

    ByVal lpApplicationName As String, _

    ByVal lpKeyName As String, _

    ByVal lpDefault As String, _

    ByVal lpReturnedString As String, _

    ByVal nSize As Integer, _

    ByVal lpFileName As String) _

    As Integer

     

    Public Function GetINIString(ByVal INIFile As String, ByVal Section As String, ByVal Key As String, Optional ByVal DefaultValue As String = "", Optional ByVal BufferSize As Integer = 1024) As String

    Dim sTemp As String = Space(BufferSize)

    Dim Length As Integer = GetPrivateProfileString(Section, Key, DefaultValue, sTemp, BufferSize, INIFile)

    Return Left(sTemp, Length)

    End Function

     

     

    aber da gibts error beim return left...

    natürlich muss die datei bei vista als administrator gestartet werden

    Edited by Knower
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...