Rank: 141431 based on 0 downloads (last 30 days) and 0 files submitted
photo

Jonathan

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Jonathan
Updated File Comments Rating
28 Nov 2011 How to load / call functions from a VB DLL A brief overview on how to create a DLL in VB .Net which can be used from within Matlab. Author: Gordon

I tried this and had no success. It seems that (at least in 2011 versions), that when registering the file using regasm.exe, it is necessary to use the /codebase option. For example using the Windows command prompt (run as administrator) from the directory that the file is located):

c:\...\...\>c:\windows\microsoft.net\framework\v4.0.30319\regasm.exe VB_Dll_Demo.dll /codebase

Under the 64 bit version of Matlab, do the same thing except use framework64 instead of framework:

c:\...\...>c:\windows\microsoft.net\framework64\v4.0.30319\regasm.exe VB_Dll_Demo.dll /codebase

I used .net framework 4.0 and compiled as "anycpu", selecting "register for COM interop". It warned that the name wasn't strong when I ran regasm so the .dll should be signed to avoid problems.

Contact us at files@mathworks.com