CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    4

    Using a MatLab created dll in VB6?

    Hey guys,
    I've created a dll from MatLab that goes out, finds the last created file in a folder, and parses it. I want to call this dll in my VB that records all the files. I don't want to pass the dll any arguments, I just want to run it. I have written this so far.

    Private Declare Function MyFunction Lib "C:\StatsWriterXLib.dll" ()

    Private Sub cmdRunDll_Click()
    MyFunction
    End Sub

    Is there anything other than this that I have to do to run this file? When I try to, VB6 complains that the file isn't there, but is definitely is there.

    Thanks for any help!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Using a MatLab created dll in VB6?

    Did you try it?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured