[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-vb
Subject: Re: [mono-vb] vbnc and external dll
From: "Rolf Bjarne Kvinge" <rolflists () ya ! com>
Date: 2009-01-19 10:04:59
Message-ID: 017f01c97a1d$675b0b70$36112250$ () com
[Download RAW message or body]
Hi,
>
> Hi,
>
> I'm trying to run vb8 code under Linux originally developed with Visual
> Studio Express 2008. I'm using the most recent Mono 2.0 version
> available in Debian testing repositories and the latest vbnc from SVN
> (122295). The problem is that I have to use Fortran functions made
> available by a dll library. The declaration of the function
>
> Public Declare Sub ProdottoMMfor Lib "matrixfor.dll" (ByRef N As
> Integer, ByRef M As Integer, ByRef L As Integer, ByRef A As Double,
> ByRef B As Double, ByRef c As Double)
>
> is ok, but when I insert the code to use ProdottoMMfor function, vbnc
> complains that "You've encountered something in the compiler which is
> not implemented. Please file a bug ... "
I tried a very simple test case:
class C
Public Declare Sub ProdottoMMfor Lib "matrixfor.dll" (ByRef N As Integer,
ByRef M As Integer, ByRef L As Integer, ByRef A As Double, ByRef B As
Double, ByRef c As Double)
shared sub Main ()
ProdottoMMfor (1, 2, 3, 4, 5, 6)
end sub
end class
and it compiles, so could you please send the code you're using?
> Is there a solution to my problem or a workaround to use functions from
> a shared library? I have the source code of the dll, I can recompile it
As Kornél said, you don't really have to recompile your application, you can
just copy it from your windows machine.
Rolf
_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-vb
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic