Erreur pendant la création d'un DLL
Bonjour,
J'ai voulu créer un DLL, le code est le suivant :
Code:
1 2 3 4 5 6 7 8 9 10
|
#include <vcclr.h>
#include <iostream>
#include <vector>
using namespace System;
using namespace System::Collections;
extern "C" __declspec(dllexport) void ToBinaryForm(ArrayList ^to_binary)
{
return;
} |
Il me retourne le problème suivant :
Citation:
Error 1 error C3395: 'ToBinaryForm' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention c:\Documents and Settings\aelhajjaji\Bureau\BinaryForm\BinaryForm\BinaryF.cpp 9
Mais quand j'enlève le paramètre (ArrayList ^to_binary) de la méthode ToBinaryForm, tout se passe bien, où est le problème ?