469,609 Members | 1,687 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Mixing managed and unmanaged code

Hello

I have problem mixing managed and unmanaged C++ code in VS.NET 2003. I want to create a windows forms application which uses some C++ code that is incompatible with managed extensions (__fastcall etc.). I have tried disabling "compile as managed" option for these specific files, but it does not help: by trial and error I figured out that if there are any "references" in the project, IDE adds /FU switch with each of these references to compilation command line of _every_ source file in the project (even if managed extensions are disabled for it). /FU switch is 'force #using'. This causes my incompatible source files to fail compilation - because unmanaged code will not compile with /FU switch

Deleting the references from project solves the problem (i.e. /FU are no longer added to command line), but once I do that I can no longer edit my forms in the designer..

I'm stuck. Please help

Best regards
Marcin
Jul 21 '05 #1
0 2180

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Daniel Lidström | last post: by
1 post views Thread by Steve Marsden | last post: by
reply views Thread by kaalus | last post: by
2 posts views Thread by quat | last post: by
3 posts views Thread by frank | last post: by
3 posts views Thread by frank | last post: by
2 posts views Thread by jraul | last post: by
2 posts views Thread by Jon Slaughter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.