Sign in to follow this  
Followers 0
JohnOne

CLR C++ DLL (Solved)

3 posts in this topic

#1 ·  Posted (edited)

EDIT:

I've labelled this as solved, but I just found another way to do what I wanted

with win32 dll.

Sorry for inconvenience.

______________________________________________________________________

I use Visual Studio 2010.

I create a new project by selecting visual c++, CLR, Class Library.

a project for creating classes to use in other applications

The resulting file is that of a .dll extension.

I want to ask if these libraries can be called from AutoIt?

The blank project created looks like this.

#pragma once
using namespace System;
namespace clrtestlib {
public ref class Class1
{
  // TODO: Add your methods for this class here.
};
}

I've created and used win32 dll files but it seems so different.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites



You can call anything that is exported as a C style export. You would do this in exactly the same way as a normal win32 dll. You just can't send managed objects into an unmanaged context (back to AutoIt).

Also, it doesn't have to have a dll extension to be usable as a library.

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  
Followers 0