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

Managed C++/CLI

 
Questionstruct and lpvoid Pin
ginjikun14-Apr-07 6:56
ginjikun14-Apr-07 6:56 
AnswerRe: struct and lpvoid Pin
George L. Jackson14-Apr-07 7:59
George L. Jackson14-Apr-07 7:59 
GeneralRe: struct and lpvoid Pin
ginjikun14-Apr-07 15:17
ginjikun14-Apr-07 15:17 
Questionwriting an avi file Pin
wajih.boukaram13-Apr-07 16:03
wajih.boukaram13-Apr-07 16:03 
AnswerRe: writing an avi file Pin
chitra4sat13-Apr-07 16:26
chitra4sat13-Apr-07 16:26 
GeneralRe: writing an avi file Pin
wajih.boukaram13-Apr-07 16:37
wajih.boukaram13-Apr-07 16:37 
AnswerRe: writing an avi file Pin
George L. Jackson13-Apr-07 17:09
George L. Jackson13-Apr-07 17:09 
QuestionWrapper class Pin
Russell'13-Apr-07 5:25
Russell'13-Apr-07 5:25 
I'm trying to understand how I can create a DLL that contains a wrapper (managed code), to use a C++ (unmanaged) class using C# or VB.NET.
I found some articles (es http://www.codeproject.com/useritems/WrappingUsingManagedCpp.asp[^])that suggest this way:
(SimpleClass is my C++ class)


namespace Managed{<br />
	public __gc class WrappClass<br />
	{<br />
		private:<br />
			SimpleClass* pClass;<br />
		public:<br />
			WrappClass(){ pClass=new SimpleClass()}<br />
			~WrappClass(){ delete pClass; }<br />
			int Foo();<br />
	};<br />
}<br />


It will be well compiled...but the linker tells that operators 'new' and 'delete' are unknown (error LNK2020)....
What is wrong??? I wrote only 20 code lines!!
Is there some settings in Visual Studio to solve this problem?
Have you got some link to a simple project like mine ... that is working?

Thanks



Cheers,
Russell

AnswerRe: Wrapper class Pin
Nish Nishant13-Apr-07 5:46
sitebuilderNish Nishant13-Apr-07 5:46 
GeneralRe: Wrapper class Pin
Russell'13-Apr-07 21:31
Russell'13-Apr-07 21:31 
GeneralRe: Wrapper class Pin
Nish Nishant14-Apr-07 1:47
sitebuilderNish Nishant14-Apr-07 1:47 
GeneralRe: Wrapper class Pin
Russell'14-Apr-07 3:23
Russell'14-Apr-07 3:23 
GeneralRe: Wrapper class Pin
Nish Nishant14-Apr-07 3:38
sitebuilderNish Nishant14-Apr-07 3:38 
GeneralRe: Wrapper class Pin
Russell'14-Apr-07 21:22
Russell'14-Apr-07 21:22 
GeneralRe: Wrapper class Pin
George L. Jackson15-Apr-07 1:28
George L. Jackson15-Apr-07 1:28 
QuestionHow to debug managed code called from unmanaged? Pin
mmfranke13-Apr-07 3:38
mmfranke13-Apr-07 3:38 
AnswerRe: How to debug managed code called from unmanaged? Pin
mmfranke13-Apr-07 9:13
mmfranke13-Apr-07 9:13 
GeneralRe: How to debug managed code called from unmanaged? Pin
Nish Nishant14-Apr-07 1:48
sitebuilderNish Nishant14-Apr-07 1:48 
Questionproperty declaration in Interface Class Pin
The Van Dao13-Apr-07 3:23
The Van Dao13-Apr-07 3:23 
AnswerRe: property declaration in Interface Class [modified] Pin
George L. Jackson13-Apr-07 6:17
George L. Jackson13-Apr-07 6:17 
QuestionVisual Studio 2005 step into does not work Pin
BuckBrown12-Apr-07 6:29
BuckBrown12-Apr-07 6:29 
AnswerRe: Visual Studio 2005 step into does not work Pin
Christian Graus12-Apr-07 13:45
protectorChristian Graus12-Apr-07 13:45 
AnswerRe: Visual Studio 2005 step into does not work Pin
User 58385212-Apr-07 14:12
User 58385212-Apr-07 14:12 
Questiondoubt Pin
Sebastian T Xavier11-Apr-07 20:25
Sebastian T Xavier11-Apr-07 20:25 
AnswerRe: doubt Pin
Nish Nishant12-Apr-07 4:11
sitebuilderNish Nishant12-Apr-07 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.