[Mono-list] calling library functions

Jonathan Pryor jonpryor at vt.edu
Fri Jan 27 07:50:36 EST 2006


On Fri, 2006-01-27 at 12:21 +0100, Mario Munda wrote:
> I wrote library with cca 10 functions, and they all work ok, but one.
> 
> Declaration in library (mlibr.dll):        
> 
>     public void SendData(string Data,string RemoteIP,ushort RemotePort)
> {
>     //
> }
> 
> Call in Main (Main.exe):
> 
> object.Bind();  - compile ok
> object.SendData(); - compile error

Is that how you're actually invoking SendData()?  That doesn't match the
above declaration; you'd instead need to call it like this:

	object.SendData ("data", "remote-ip", (ushort) remotePort);

If that's not it, it would help if you could provide more source code,
narrowing it down to the smallest amount code necessary to generate the
compiler error.

 - Jon




More information about the Mono-list mailing list