Bonjour,
J'ai voulu créer un DLL, le code est le suivant :
Il me retourne le problème suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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; }
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 ?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
Partager