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

    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()
    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
    Fox Lake, IL

    Re: Using a MatLab created dll in VB6?

    Did you try it?

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.