Probably I'll be kind of redundant but...
First of all the library you want to use is a .Net Assembly?
If it is you can try to added to the GAC by using the gacutil command
# gacutil -i xxx.dll

or to un-install it
# gacutil -u xxx.dll

or you can play with the configuration files and the dllmap node like
<configuration>
 <dllmap dll="libxxx.dll" target="libxxx.so.0" />
</configuration>


If is not a .Net assembly you can try use wine & PInvoke, but honestly dont
think this works. I heard about people trying but they never came back and
say that they could.


On Wed, Jun 3, 2009 at 8:21 AM, Chaiser <[email protected]> wrote:

>
> Hey all,
>
> I'm new to mono so I hope that you'll be able to sort my problem.
>
> I wrote a C# program on .net in windows. in my program I'm using a xxx.dll
> that I created using visual C.
>
> I build the project , got a proj.exe file that is using my xxx.dll.
>
> when I copy my proj.exe+xxx.dll to linux env, and running it with " mono
> proj.exe " it runs fine until it reaches the part the programs call a
> function from the xxx.dll ( reasonable cause the xxx.dll written and
> compiled for win 32 ).
>
> my question is  - how can I use my xxx.dll ( compile it with gcc ?! ) with
> mono in linux ?
>
> thanks in advance,
> Joe
> --
> View this message in context:
> http://www.nabble.com/using-dll-in-linux-tp23852386p23852386.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-list
>
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to