×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to use a dll created with Matlab with Delphi?

How to use a dll created with Matlab with Delphi?

How to use a dll created with Matlab with Delphi?

(OP)
Hello everyone,

Has anyone used dll's made with Matlab (m-files compiled with mcc) in programs made with delphi? I know how to load the dll, and I know what the functions are called in the dll (they are listed in the .exp-file). But I can't make it work, Delphi gives me error: Access violation in module 'libmattlb.dll'. Does someone know why this happens? I don't have any input parameters in the main function, so it can't be because of different data types? Do I need to call the initialize-function, that is in the (dll-name).c, and also in the .exp-file? I tried also that, and then the delphi-program froze. I have tried to find answers on the internet, but all I find are the same questions I have, not the answers..

The dll is compiled with Matlab's compiler (lcc), version 3.

Thank you all in forehand.

RE: How to use a dll created with Matlab with Delphi?

i have the same problem, i think the solution is in mxcreate of matlab, i'm not sure but i think the input paramaters have incorrect type.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources