Click here to Skip to main content
12,819,727 members (36,275 online)

Managed C++/CLI

 
Questionexceptions Pin
Emmos201116-Oct-12 6:10
memberEmmos201116-Oct-12 6:10 
AnswerRe: exceptions Pin
Richard MacCutchan16-Oct-12 9:22
mvpRichard MacCutchan16-Oct-12 9:22 
Questionc++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 0:21
memberMarius Bancila11-Oct-12 0:21 
AnswerRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl11-Oct-12 4:19
memberJohn Schroedl11-Oct-12 4:19 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl11-Oct-12 4:29
memberJohn Schroedl11-Oct-12 4:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 11:12
memberMarius Bancila11-Oct-12 11:12 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 3:29
memberJohn Schroedl12-Oct-12 3:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 22:35
memberMarius Bancila11-Oct-12 22:35 
It doesn't work in MFC apps with /clr support.

1>.\mfc_mm_2008.cpp(38) : error C2059: syntax error : 'string'
1>.\mfc_mm_2008.cpp(38) : error C2091: function returns function
1>.\mfc_mm_2008.cpp(39) : warning C4569: 'IFoo::foo' : no members match the signature of the explicit override
1>.\mfc_mm_2008.cpp(39) : error C3671: 'FooDerived::foo' : function does not override 'IFoo::foo'


The reason is MFC is rewriting the new operator with

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

So anyone wanting to do this in MFC, make sure you don't have that replacement of new before your declaration of the new function definition.
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 3:34
memberJohn Schroedl12-Oct-12 3:34 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 3:38
memberJohn Schroedl12-Oct-12 3:38 
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 
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 
QuestionChild dialog shadow remains Pin
shivareaj5-Oct-12 8:30
membershivareaj5-Oct-12 8:30 
AnswerRe: Child dialog shadow remains Pin
Richard MacCutchan5-Oct-12 23:35
mvpRichard MacCutchan5-Oct-12 23:35 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 7:02
membershivareaj6-Oct-12 7:02 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 7:07
mvpRichard MacCutchan6-Oct-12 7:07 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 18:55
membershivareaj6-Oct-12 18:55 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 22:30
mvpRichard MacCutchan6-Oct-12 22:30 
QuestionHow to call manged api from unmanaged code? Pin
litu kumar4-Oct-12 4:25
memberlitu kumar4-Oct-12 4:25 
AnswerRe: How to call manged api from unmanaged code? Pin
Richard Andrew x645-Oct-12 10:30
memberRichard Andrew x645-Oct-12 10:30 
GeneralRe: How to call manged api from unmanaged code? Pin
litu kumar15-Oct-12 3:13
memberlitu kumar15-Oct-12 3:13 
GeneralRe: How to call manged api from unmanaged code? Pin
Richard Andrew x6415-Oct-12 7:46
memberRichard Andrew x6415-Oct-12 7:46 
QuestionHow to create CLI Interface to access .net API from C++ code? Pin
litu kumar3-Oct-12 1:19
memberlitu kumar3-Oct-12 1:19 

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
Web01 | 2.8.170308.1 | Last Updated 5 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid