> Having Windows.h at precompiled header or prior to other includes is
> "must" for some header files those do not include windows.h themselves.
> therefore, you need to include this before those headers in the
> translation unit. the best way is putting it into precompiled header.
I know that Vfw.h needs windows.h to be include first, so I had included
windows.h already. But I included both files in two different cpp files,
which seems to have caused the problem. Moving the includes to stdafx.h
works fine.
> I think I have seen one book, it is MS-Press' but I couldn't recall its
> name.
"Programming with Managed Extensions for Microsoft Visual C++ .NET
Version 2003" by Richard Grimes looks promissing but is quite expensive.
> Please try to focus on C++/CLI rather than MC++. MC++ will be
> deprecated by C++/CLI.
Don't know what you mean with C++/CLI and MC++ and what the difference
is!? Is MC++ 'classic' C++ with raw pointers, STL and so on and C++/CLI
is using the .Net framework?
If that's true, I would not give up MC++, because I realy like STL,
templates and so on. I implement low level algorithms and numeric stuff,
which I would like to make available to other .Net languages.
Currently I try to write a library to work with AVI Files. As already
mentioned, I use the Windows Multimedia SDK to read the AVI Files. I
have only seen C# interop examples which work with this API. An managing
raw memory in C# seems to be a pain to me.
How would you work with such raw C APIs?
regards,
Achim
Ioannis Vranos - 23 May 2005 12:42 GMT
> Don't know what you mean with C++/CLI and MC++ and what the difference
> is!? Is MC++ 'classic' C++ with raw pointers, STL and so on and C++/CLI
> is using the .Net framework?
C++/CLI is the descendant of "managed extensions" and will "replace and extend" them in VS
2005.
With VS 2005, C++ becomes the systems programming language of .NET.
Some references:
http://msdn.microsoft.com/msdnmag/issues/05/01/COptimizations/default.aspx
http://pluralsight.com/blogs/hsutter/archive/2004/10/05/2672.aspx
http://blogs.msdn.com/branbray/archive/2003/11/07/51007.aspx
http://www.accu.org/conference/presentations/Sutter_-_Is_C++_Relevant_on_Modern_
Environments_%28keynote%29.pdf
And a page of mine:
http://www23.brinkster.com/noicys/cppcli.htm
> If that's true, I would not give up MC++, because I realy like STL,
> templates and so on. I implement low level algorithms and numeric stuff,
> which I would like to make available to other .Net languages.
VS 2005 will also provide an STL version that will also work for managed types.
Ioannis Vranos - 29 May 2005 19:30 GMT
> C++/CLI is the descendant of "managed extensions" and will "replace and
> extend" them in VS 2005.
In other words, we can say that it is "managed extensions version 2". Even the draft
standard follows this as version numbering.