Jump to content
Sign in to follow this  
Aruna

Help with C++ dll

Recommended Posts

Aruna

Hello,

I am a C++ newbie. I want to write a very simple C++ dll which can be called from an AutoIt script.

I have attached the very simple AutoIt script (posted by another member some time ago) along with the VC++ 2008 Express files which I am allowed to attach.

My .def C++ file has the following content:-

LIBRARY AutoItTestDll.dll

EXPORTS

TestFunc

The C++ code compiles and link successfully but I also get the LINK message:-

1>LINK : C:\Users\Admin\\Documents\Visual Studio 2008\Projects\AutoItTestDll\Debug\AutoItTestDll.dll not found or not built by the last incremental link; performing full link

When I run the AutoIt script I get the error message:-

"Error calling Dll:1"

Any and all help is appreciated.

Thank you.

AutoItTestDll.cpp

dllmain.cpp

stdafx.cpp

stdafx.h

targetver.h

stdafx.h

AutoItDllTest.au3

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  

×