Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

C++/CLI - How to translate ?

$
0
0

Hey folks. I got a Plugin Host whicht expects a DLL that is TypeOf(iPlugin) Internface. This Host is written under VB.NET Framework 4.5.

However: How do I write a Plugin under C++/CLI that is exporting that iPlugin::TypeId?

I have to following but it will not be recognized by the catlog/container classes as type of iPlugin.

How do I have to export the ID in a correct way? My definition in the header file is:

#pragma once

using namespace System;
using namespace System::ComponentModel::Composition;
using namespace SharedLibrary;
using namespace Plugin_Interface;

namespace MyCppPlugin {
	
	[System::ComponentModel::Composition::ExportAttribute(IPlugin::typeid)]
	public ref class MyPlugin abstract : public Plugin_Interface::IPlugin
	{
	public:
		virtual bool CreateInstance(SharedLibrary::MemoryArbiter^%, SharedLibrary::clsMessageQueue^%, SharedLibrary::clsGPIO^%, SharedLibrary::Types^%, SharedLibrary::DisplayDriver^%);
		virtual bool DeleteInstance(void);
		virtual void ForceUnload(void);
		virtual void Interrupt(void);
		virtual void Main_Loop(void);
	};
};

Thank you :)


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>