K
kent
Hi,
I'm trying to build a verfiable DLL using Visual Studio C++ 2005. I've
applied the /clr:safe, /CLRIMAGETYPE:SAFE and /noentry options. The
code is:
// TestRobot.h
#include "stdafx.h"
#pragma once
using namespace NRobot::Robot;
[assembly:RobotClass("NRobot.MyName.MyRobot")];
namespace NRobot {
namespace MyName {
[OwnerEmail("(e-mail address removed)")]
[TeamInfo(Name="My Team2", BodyColor=0xffff00)]
[RobotInfo(1, Name="My Robot")]
public ref class MyRobot : public IRobot {
public:
virtual void Start(StartState ^state) {
}
virtual void Tick(TickState ^state) {
state->MoveSpeed = 10;
state->TurnSpeed = 10;
state->Fire();
}
};
}
}
But the output DLL dosen't seem to be right. It won't load in an
application domain with restricted privileges (The C# version of the
same code works fine). Any idea?
Thanks in advance!
I'm trying to build a verfiable DLL using Visual Studio C++ 2005. I've
applied the /clr:safe, /CLRIMAGETYPE:SAFE and /noentry options. The
code is:
// TestRobot.h
#include "stdafx.h"
#pragma once
using namespace NRobot::Robot;
[assembly:RobotClass("NRobot.MyName.MyRobot")];
namespace NRobot {
namespace MyName {
[OwnerEmail("(e-mail address removed)")]
[TeamInfo(Name="My Team2", BodyColor=0xffff00)]
[RobotInfo(1, Name="My Robot")]
public ref class MyRobot : public IRobot {
public:
virtual void Start(StartState ^state) {
}
virtual void Tick(TickState ^state) {
state->MoveSpeed = 10;
state->TurnSpeed = 10;
state->Fire();
}
};
}
}
But the output DLL dosen't seem to be right. It won't load in an
application domain with restricted privileges (The C# version of the
same code works fine). Any idea?
Thanks in advance!