Import .Net DLL Function

M

Mythran

In other languages, I can create a dll and then use that dll in different
languages. Example: Create a library (.dll) using C/C++ and then import
functions from the dll's for use in Pascal.

I am trying to do this with the assembly being a test vb.net library I
wrote. What does the vb.net library need (attributes, settings, et cetera)
to get this to work (if possible)?

My end goal is to export and use this functionality in a setup script
written using Inno Setup. It has the ability to call api's but needs to
have the methods imported (like all other languages I've dealt with).....any
help is much appreciated.

Thanks,
Mythran
 
C

Carlos J. Quintero [MVP]

I may be wrong, but I think that you can not create Win32 DLLs with managed
languages (C#, VB.NET). But you can create .NET DLLs and make them appear as
COM (ActiveX DLLs), and then they are callable from InnoSetup via
CreateObject or similar. On the other hand, you could create the functions
within InnoSetup script using Pascal and avoid the DLL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top