Click here to Skip to main content
15,884,388 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionhow can we avoid error D8016 ? Pin
litu kumar8-Oct-12 23:18
litu kumar8-Oct-12 23:18 
AnswerRe: how can we avoid error D8016 ? Pin
Richard MacCutchan9-Oct-12 0:18
mveRichard MacCutchan9-Oct-12 0: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 ? Pin
litu kumar7-Nov-12 21:49
litu kumar7-Nov-12 21:49 
GeneralRe: how can we avoid error D8016 ? Pin
Freak3026-Nov-12 3:11
Freak3026-Nov-12 3:11 

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

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