Click here to Skip to main content
16,008,175 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralC++ vs. Managed C++ Pin
SanShou6-Dec-02 4:50
SanShou6-Dec-02 4:50 
GeneralRe: C++ vs. Managed C++ Pin
Jeff J6-Dec-02 12:55
Jeff J6-Dec-02 12:55 
GeneralRe: C++ vs. Managed C++ Pin
Nitron7-Dec-02 12:49
Nitron7-Dec-02 12:49 
GeneralRe: C++ vs. Managed C++ Pin
SanShou9-Dec-02 11:02
SanShou9-Dec-02 11:02 
GeneralRe: C++ vs. Managed C++ Pin
Nick Parker7-Dec-02 5:08
protectorNick Parker7-Dec-02 5:08 
GeneralRe: C++ vs. Managed C++ Pin
SanShou9-Dec-02 11:05
SanShou9-Dec-02 11:05 
GeneralRe: C++ vs. Managed C++ Pin
Nick Parker11-Dec-02 9:47
protectorNick Parker11-Dec-02 9:47 
GeneralWriting COM accesible objects in Managed C++ Pin
tlemoine5-Dec-02 15:18
tlemoine5-Dec-02 15:18 
Im trying to create a Managed C++ object that will be accessible both from Managed Code, as well as through a standard COM interface. I have written the component and have no problems using it from JScript, so I moved on to attempting use through standard COM from Win32 App. When I export the type library from the assembly, it contains the definitions for the classes but not the interfaces?? For example if I built the following overly simplified managed code into an assembly

<br />
#include "stdafx.h"<br />
<br />
#using <mscorlib.dll><br />
<br />
using namespace System;<br />
using namespace System::Reflection;<br />
using namespace System::Runtime::InteropServices;<br />
<br />
[assembly:AssemblyKeyFileAttribute("ComponentTest.snk")];<br />
<br />
namespace TestNM<br />
{<br />
	__gc __interface ITestComp<br />
	{<br />
		int	GetNumber();<br />
		void	SetNumber(int num);<br />
	};<br />
<br />
	__gc public class MyTestComp : public ITestComp<br />
	{<br />
	public:<br />
		MyTestComp() { m_iNumber = 0; }<br />
		~MyTestComp() {};<br />
		<br />
		int	GetNumber() {return m_iNumber; }<br />
		void	SetNumber(int num) { m_iNumber = num; }<br />
	private:<br />
		int	m_iNumber;<br />
	};<br />
}<br />


Then export the type library, and open with oleview, the definition of "ITestComp" interface is no where to be found, in fact it says MyTestComp is an interface??? Anyone have any ideas?


Thanks!
GeneralRe: Writing COM accesible objects in Managed C++ Pin
Jonathan [Darka]13-Dec-02 3:22
professionalJonathan [Darka]13-Dec-02 3:22 
GeneralRe: Writing COM accesible objects in Managed C++ Pin
Jonathan [Darka]13-Dec-02 3:24
professionalJonathan [Darka]13-Dec-02 3:24 
GeneralAmbiguous calls Pin
Soni3-Dec-02 20:20
Soni3-Dec-02 20:20 
GeneralRe: Ambiguous calls Pin
Alexandru Savescu3-Dec-02 21:57
Alexandru Savescu3-Dec-02 21:57 
GeneralRe: Ambiguous calls Pin
Soni4-Dec-02 0:11
Soni4-Dec-02 0:11 
GeneralForm Handle Pin
Jeff J2-Dec-02 10:33
Jeff J2-Dec-02 10:33 
GeneralRe: Form Handle Pin
Kannan Kalyanaraman3-Dec-02 3:53
Kannan Kalyanaraman3-Dec-02 3:53 
GeneralRe: Form Handle Pin
Jeff J3-Dec-02 13:06
Jeff J3-Dec-02 13:06 
GeneralC++ plotting routine Pin
amica29-Nov-02 12:34
amica29-Nov-02 12:34 
QuestionHow to Change the Icon from the TitleBar Pin
Peter Fonk27-Nov-02 22:34
Peter Fonk27-Nov-02 22:34 
AnswerRe: How to Change the Icon from the TitleBar Pin
Jeff J2-Dec-02 15:41
Jeff J2-Dec-02 15:41 
GeneralRe: How to Change the Icon from the TitleBar Pin
Peter Fonk3-Dec-02 0:55
Peter Fonk3-Dec-02 0:55 
GeneralWrapping a unmanaged C++ class Pin
simwiz27-Nov-02 22:28
simwiz27-Nov-02 22:28 
QuestionCan anybody help me? Pin
mwhassan26-Nov-02 15:36
mwhassan26-Nov-02 15:36 
Generalfstream Pin
krauftig24-Nov-02 22:39
krauftig24-Nov-02 22:39 
GeneralRe: fstream Pin
Nick Hodapp25-Nov-02 8:01
sitebuilderNick Hodapp25-Nov-02 8:01 
GeneralRe: fstream Pin
Anonymous25-Nov-02 17:42
Anonymous25-Nov-02 17:42 

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.