472,096 Members | 1,364 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

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 2430

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.