I think you can flag individual files with the clr flag. Changing the whole project to clr might have unwanted side effects (eg. managed code AFAIK is multi-threaded by default)
However it is probably 'better' to have a bridging dll - .net components are nicely separated from the unmanaged code.
Main Topics
Browse All Topics





by: WerrockPosted on 2008-12-04 at 12:58:44ID: 23099372
You have to use the CLR flag and build everything as a managed project but you can still have your unmanged code in it if you surround that code with #pragma unmanaged and #pragma managed.