Maria G. Valdes

hi, I recently started using Visual C++ 2005, and I'm trying to work with BITMAPS to get pixel information, I had started a thread about that topic but now I have a more general question about namespaces, I was wondering if to include the system.drawing namespace I must be in a CLR project.

Is there another way to use the bitmap class and other namespaces like system.something

Thanks



Re: Visual C++ General Namespaces System.drawing

Alex Farber

Generally, if you want to use .NET classes, you need to compile program with /clr switch, this means, make it managed.
However, every task can be solved using .NET and without it. Specifically, Bitmap is part of GDI+ which is available for unmanaged C++ program.

http://msdn2.microsoft.com/en-us/library/ms533798.aspx





Re: Visual C++ General Namespaces System.drawing

Maria G. Valdes

Another question about this, I've tried to build standard c++ classes with CLR but then I cannot include some libraries like iostream, what can I do about it



Re: Visual C++ General Namespaces System.drawing

Alex Farber

What is exactly the problem, what error do you have