Click here to Skip to main content
12,829,316 members (45,651 online)

Managed C++/CLI

Questionhow can we avoid error D8016 ? Pin
litu kumar9-Oct-12 0:18
memberlitu kumar9-Oct-12 0:18 
AnswerRe: how can we avoid error D8016 ? Pin
Richard MacCutchan9-Oct-12 1:18
mvpRichard 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 ? Pin
litu kumar7-Nov-12 22:49
memberlitu kumar7-Nov-12 22:49 
GeneralRe: how can we avoid error D8016 ? Pin
Freak3026-Nov-12 4:11
memberFreak3026-Nov-12 4: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.

Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 29 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid