Referenz hinzufügen - Steam.dll

  • VB.NET

Es gibt 3 Antworten in diesem Thema. Der letzte Beitrag () ist von Bii.

    Hab die DLL mal so hinzugefügt

    VB.NET-Quellcode

    1. <DllImport("Steam.dll", CallingConvention:=CallingConvention.Cdecl)> _
    2. Public Function SteamDecryptDataForThisMachine(ByVal encryptedData As String, _
    3. ByVal encryptedDataSize As Integer, _
    4. ByVal decryptedBuffer As StringBuilder, _
    5. ByVal decryptedBufferSize As Integer, _
    6. ByRef decryptedDataSize As Integer) As Integer

    Dann steht da
    "System.Runtime.InteropServices.DLLImportAttribute" cannot be applied to instance method.

    >> Delete the applied "System.Runtime.InteropServices.DLLImportAttribute" attribute.
    Das wird Rot markiert

    VB.NET-Quellcode

    1. <DllImport("Steam.dll", CallingConvention:=CallingConvention.Cdecl)> _


    # EDIT #
    In einer ConsoleApplication kommt kein Fehler...

    Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von „Bii“ ()