Jump to content
Sign in to follow this  
Guest Rodrigo

Use of Visual Basic's Dll

Recommended Posts

Guest Rodrigo

Hello to all,

I'm use v3.1.0

Well, I have one function made in Visual Basic 6.0 that I'd like use in AutoIt. For this I make one Dll,but not work.

For those that know VB.

(ActiveX Dll Project) in a Class Module I have this code (Is just one example !):

Function msg(result$)

MsgBox result, vbCritical

End Function

And I compile this code as popup.dll

How Can I Call this dll in the AutoIt ??? This is possible with a dll made in VB ?

THX.

Rodrigo Martins.

Share this post


Link to post
Share on other sites
automagician

DllCall("popup.dll", 'return type', "msg")

See AutoIt Help - DllCall for more info....

Share this post


Link to post
Share on other sites
SlimShady

I can't make it work either.

My first thought was "you shouldn't make an ActiveX DLL", but I'm not really into this.

I tried different things, but AutoIt keeps saying it fails to call the function.

Share this post


Link to post
Share on other sites
SlimShady

I thought he wants to call the function using AutoIt's DllCall..?

Share this post


Link to post
Share on other sites
automagician

If you can get this linker working, it supposed to be able to turn the VB DLL into a "real" DLL. Not everyone I know has had success with this, but it may be worth a shot...

That's all I can think of....sorry.

Sorry forgot the link:

http://lockfree.50megs.com/linker.html

Edited by automagician

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.