In native C++

here is stdafx.h

#pragma once
#include <iostream>

#include <tchar.h>

[ event_source( native, optimize = speed, decorate = false ) ]

class CSourceToto

{

public:

__event void MyEvent(int nValue);

};

and main.cpp using precompiled header

#include "stdafx.h"

[event_source(native)]

class CSource

{

public:

__event void MyEvent(int nValue);

};

int _tmain(int argc, _TCHAR* argv[])

{

return 0;

}

I got these errors !

main.cpp(11) : error C2011: '__EventingCriticalSectionStub' : 'struct' type
redefinition

main.cpp(11) : see declaration of '__EventingCriticalSectionStub'

main.cpp(11) : error C2953: '__eventingGetAddr' : template class has already
been defined

etc...

Anyone know how to solve this ?