Results 1 to 5 of 5

Thread: Calling a C# dll with vb6

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Posts
    3

    Exclamation Calling a C# dll with vb6

    Hi all!

    I'm really new to vb6 and have some knowledge of C# and would like to create a vb6 program that calls a C# dll but I've found a huge problem which is, I always get a "dll runtime error 453".

    I've been googling for some hours and can't find the solution for this problem...

    please help.

    thanks a lot

    B33bs

    (here's the code sample... it's just an example)

    Private Declare Function func Lib "C:\Documents and Settings\...\dllnewAtt.dll" () As String

    Private Sub Command1_Click()
    Dim nSpeed As String

    nSpeed = func()

    Form1.Text1.Text = nSpeed

    End Sub
    Last edited by b33bs; Nov 10th, 2009 at 05:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width