referencing com interface in fsi F# interactive

85 Views Asked by At

I'm trying to rewrite this matlab .Net example in F# interactive. In the example a COM-interface reference is used. How do I reference a COM-interface from within the fsi?

EDIT

I refence the as described

From the Project menu, select Add Reference. Select the COM tab in the Add Reference dialog box. Select the MATLAB application.

This reference I can not send with right click to the interactive. There is no path in the properties and the dll cited in the description MLApp.dll I can not find in my matlab directory. This F# programm works:

[<EntryPoint>]
let main argv = 
    let matlab = new MLApp.MLAppClass()
    matlab.Execute "x=1+1"          |> printfn "%A"
    matlab.GetVariable("x","base")  |> printfn "%A"
    0 

But I want to use it from FSI.

0

There are 0 best solutions below

Related Questions in F#