[mono-vb] vbnc and external dll
Rolf Bjarne Kvinge
rolflists at ya.com
Mon Jan 19 05:04:59 EST 2009
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
More information about the Mono-vb
mailing list