[Mono-list] Cannot find type? :-<

Maurizio Colucci seguso.forever@tin.it
Wed, 30 Apr 2003 17:18:03 +0200


On Wednesday 30 April 2003 16:52, Ravi Pratap M wrote:

> 	It means that mcs is unable to find the classes/types which it mentions
> here. The possible reason for this could be that you are not referencing
> the System.Drawing assembly in the command line when you compile your
> program.
>
>
> 	So do :
>
> 	$ mcs -r:System texture-system.cs
>

Thanks a lot Ravi,

I wasn't referencing the System.Drawing assembly. :-P I thought it was
implicit, since corlib must not be referenced...

I fixed it with

mcs -r System.Drawing 

But there's another error:

texture-system.cs(82) error CS0117: `System.Drawing.Bitmap' 
                       does not contain a definition for `LockBits'

Since I can see the red cross on LockBits on the mono site, I guess
LockBits has yet to be implemented. Is that so?

I wish I were skilled enough to implement it myself... What should I
do?

Thanks a lot for your help!

Maurizio