T
TBass
I'm trying to put together the plugin framework example from MSDN.
I made a new class library in VS 2003, and created this header file:
#pragma once
#include <string>
#using <mscorlib.dll>
using namespace System;
public interface class IPluginContext
{
string *CurrentDocumentText{get;set;}
};
public interface class IPlugin
{
string *Name{get;}
void PerformAction(IPluginContext context);
};
But I get a compiler error, and I don't know why:
c:\srcroot\Fusion\R-01\FusionDVR\FusionDVR\FusionDVR.h(19): error
C2059: syntax error : 'public'
Why would it be a syntax error? Note: I have added the /CLR compiler
switch.
Can anyone shed some light on my stupidity?
Thanks!
Tom
I made a new class library in VS 2003, and created this header file:
#pragma once
#include <string>
#using <mscorlib.dll>
using namespace System;
public interface class IPluginContext
{
string *CurrentDocumentText{get;set;}
};
public interface class IPlugin
{
string *Name{get;}
void PerformAction(IPluginContext context);
};
But I get a compiler error, and I don't know why:
c:\srcroot\Fusion\R-01\FusionDVR\FusionDVR\FusionDVR.h(19): error
C2059: syntax error : 'public'
Why would it be a syntax error? Note: I have added the /CLR compiler
switch.
Can anyone shed some light on my stupidity?
Thanks!
Tom