Click here to Skip to main content
11,494,174 members (60,018 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    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.150520.1 | Last Updated 13 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid