Sorry to reopen an old thread.  I'm trying to do something similar and 
haven't been able to figure it out so far.  Isaiah, I noticed that your 
COMCall.jl library is not on GitHub anymore.  Is this code still floating 
around anywhere or is there a different suggested route?

In my case, I have a dll (written in c# I think) which is currently being 
called from Python using win32com 
<http://docs.activestate.com/activepython/3.3/pywin32/html/com/win32com/HTML/QuickStartClientCom.html>.
 
 I would like to call the dll directly from Julia without going through 
PyCall (although this works).  I don't have the source for that dll but a 
simple example is:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleLibrary
{
    public class MyClass
    {
        public static double MySum(double a, double b)
        {
            return a + b;
        }
        
        public static double NoArgs()
        {
            return 1.4;
        }

    }
}

Naively trying to call these with ccal like 

ccall( ("SimpleLibrary.MyClass.MySum", "SimplyLibrary"), Float32, (1.2, 
3.1))

gives a "wrong number of arguments" error.  Is there any easy (or failing 
that, hard) way to do this?

Reply via email to