P
Pascal Cloup
Hello,
I write a Dll of managed C++ class that contains a piece of code like the
following liines.
This code always fails when attempting to create a new not managed class.
Someone has an explanation?
Help please
Pascal
// Il s'agit du fichier DLL principal.
#include "stdafx.h"
#include "TestEmbended.h"
#using <mscorlib.dll>
using namespace System;
namespace TestEmbended
{
public __gc class Class1
{
public:
__nogc class CEmbeded
{
public:
void toto() {};
};
CEmbeded *ce;
Class1(void)
{
ce = new CEmbeded(); // Exeption here
ce->toto();
};
};
}
I write a Dll of managed C++ class that contains a piece of code like the
following liines.
This code always fails when attempting to create a new not managed class.
Someone has an explanation?
Help please
Pascal
// Il s'agit du fichier DLL principal.
#include "stdafx.h"
#include "TestEmbended.h"
#using <mscorlib.dll>
using namespace System;
namespace TestEmbended
{
public __gc class Class1
{
public:
__nogc class CEmbeded
{
public:
void toto() {};
};
CEmbeded *ce;
Class1(void)
{
ce = new CEmbeded(); // Exeption here
ce->toto();
};
};
}