help with code(something wrong with it)

Posts 1–15 of 32 · Page 1 of 3
help with code(something wrong with it)
hey, im working on d3d and i was going of a tut http://www.mpgh.net/forum/33-visual-...ic-2008-a.html

and somthing goes wrong it says it cant find the lala.dll

Code:
Imports System.Drawing

Public Class Form1
    Private Declare Function GPSL_SetTextLineData Lib "lala.dll" (ByVal wTextPosX As Short, ByVal wTextPosY As Short, ByVal LPCTSTR As String, ByVal dwTextColor As Integer, _
ByVal bBlackBackground As Boolean, ByVal cSize As Byte, ByVal bTextBold As Boolean, ByVal cFontFamily As Byte) As Boolean
    Private Declare Function GPSL_ShowText Lib "lala.dll" (ByVal bShowIt As Boolean)
    Dim Text1 As String = Nothing


    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Enabled = True
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        Dim Text1 As String = Nothing
        Text1 = "[Mpgh.net]Ownz you!"
        GPSL_SetTextLineData(1064, 5, Text1, Color.FromArgb(255, 255, 0, 0).ToArgb, True, 20, True, 0)
        GPSL_ShowText(True)

    End Sub
End Class
lala.dll is included with the tutorial.
I know but i put it in vb program files still not working

Unable to load DLL 'lala.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

okay now i fixed lala.dll i have a diff error

PInvoke restriction: cannot return variants
Exception from HRESULT: 0x8007007E is a general error, usually associated with a dll not being in the appropriate path.

Make sure you put the dll into your bin folder and debug folder. Check again.
okay new error

PInvoke restriction: cannot return variants
A lot of stuff on mpgh is outdated so it may not work.
Quote Originally Posted by Joshcarr2006 View Post
A lot of stuff on mpgh is outdated so it may not work.
well it was written for vb.net, why wouldn't it still work for vb.net? the ide doesn't change /
Because the hacking tutorials are usually pretty old.

On topic, now.
well,PInvoke restriction: cannot return variants help
Quote Originally Posted by tremaster View Post
well,PInvoke restriction: cannot return variants help
Thanks for telling us 4 times I couldn't catch the first few.
well can i have sum help?
For 'ShowText' you didn't declare the return type.

Try:
[php]
Private Declare Function GPSL_ShowText Lib "lala.dll" (ByVal bShowIt As Boolean) As Boolean
[/php]
now nothing is showing up
Same here..
Posts 1–15 of 32 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?