[Mono-devel-list] Problem with P/Invoke
Carlos Alberto Cortez Guevara
carlos at unixmexico.org
Fri Jan 30 17:39:51 EST 2004
Hi,
je je, you make me smile for a moment ;)
Regards,
Carlos.
El vie, 30-01-2004 a las 15:38, Chris Turchin escribió:
> Hey,
>
> I tried to compile your signature with mcs and got the following
> compiler errors:
>
> carlos.cs(5) error CS0246: Cannot find type `Human'
> carlos.cs(5) error CS0535: 'Carlos' does not implement interface member
> 'IGenius.get_HasBrain()'
> carlos.cs(5) error CS0103: The name `Me.Think' could not be found in
> `Carlos'
>
> Is this a bug?
>
> ;-)
>
> --chris
>
>
>
>
> On Fri, 2004-01-30 at 20:16, Carlos Alberto Cortez Guevara wrote:
> > Hi,
> >
> > I was playing with some P/Invoke samples, and I found that the next code
> > doesn't work perfect.
> >
> > I'm loading the strncpy function from the standard library (libc), and
> > the first call works perfect. However, in the second call (and third,
> > ..) it doesn't work.
> >
> > Is this a bug?
> >
> > Regards,
> > Carlos.
> --------------------------------------------------
> /* The definition of myself */
> using Cortez;
> using GeniusIntelligence;
>
> public class Carlos : Human, IGenius, ILinuxUser {
>
> static void Main () {
> Me.Think();
> }
>
> }
>
> --------------------------------------------------
--
--------------------------------------------------
/* The definition of myself */
using Cortez;
using GeniusIntelligence;
public class Carlos : Human, IGenius, ILinuxUser {
static void Main () {
Me.Think();
}
}
--------------------------------------------------
More information about the Mono-devel-list
mailing list