S
songie D
Can managed C++ be trusted to handle the garbage collector correctly in the
right bit if I have a project with unmanaged and managed parts in it?
right bit if I have a project with unmanaged and managed parts in it?
Is there something more specific you are after?
ermm...yes, now you come to mention it.
I'm trying to add
using namespace System::Runtime::InteropServices;
to my project, but it gives the error
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(3139) : error C2872: 'FILETIME' :
ambiguous symbol
could be 'C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinDef.h(354) : _FILETIME FILETIME'
or 'stdafx.cpp(0) : System::Runtime::InteropServices::FILETIME'
many times. I can get round it by putting the explicit namespace name
preceeding all calls to the namespace, but that's a bit cumbersome. Any idea
how I can resolve it?
Also, for having an unmanaged function in one separate .cpp file, and the
managed code in what the IDE gives you (i.e. Form1.h), how would I link to
the unmanaged function, using extern "C"? or other?
Would I have to put #pragma unmanaged round the declaration?
Well, I must say I ran into a few problems with mixed MC++ / C++ whenRonald Laeremans said:Yes.
Is there something more specific you are after?
building the project all at once?How would I compile one file without /clr and the rest with /clr, while
Arnaud Debaene said:"Ronald Laeremans [MSFT]" <[email protected]> wrote in messageWell, I must say I ran into a few problems with mixed MC++ / C++ whenYes.
Is there something more specific you are after?
you make heavy use of the RAII idiom : the .NET runtime seems to have
difficulties with tracking lifetime of parameters, which can have some
nasty side effects, even i f they are not related to GC.
See http://groups.google.com/groups?hl=...2&meta=group%3Dmicrosoft.public.vc.language.*
for the last dirty one.
Arnaud
MVP - VC
That's bollocks, there's no way you're supposed to change what's in the
contents of the system files. This isn't anything I've defined!
Writing software is not about trust, faith or believe, it is aboutsongie D said:ah, so you're a non-truster I see aswell
I think I'll join you.
Such childish reactions won't get you much attention here...It does all seem like a big bag of shite all for the sake of IJW...
Arnaud Debaene said:"songie D" <[email protected]> wrote in message
Writing software is not about trust, faith or believe
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.