Click here to Skip to main content

Managed C++/CLI

Questionhow can we avoid error D8016 ? Pinmemberlitu kumar9-Oct-12 0:18 
AnswerRe: how can we avoid error D8016 ? PinmvpRichard MacCutchan9-Oct-12 1:18 
There is no sample code for your problem. The message is quite clear you cannot mix managed and unmanaged code in the same project this way. You need to split it into two projects, one which is normal unmanaged C++ and one which is managed and uses the /clr option. Calling Managed Code from Unmanaged Code and vice-versa[^] is a CodeProject article that will help you.
One of these days I'm going to think of a really clever signature.

GeneralRe: how can we avoid error D8016 ? Pinmemberlitu kumar7-Nov-12 22:49 
GeneralRe: how can we avoid error D8016 ? PinmemberFreak3026-Nov-12 4:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 6 Dec 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid