Bonjour
Comment pourrai-je appeler une dll codé en C à partir d'une application Windows phone7 ?
voila ce que j'ai fait pour le moment:
lors de l’exécution j'ai le message d'erreur suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 namespace monAppliTestWP7 { public partial class MainPage : PhoneApplicationPage { [DllImport("TestLib.dll", EntryPoint = "intFromDll")] static extern int intFromDLL(); // Constructeur public MainPage() { InitializeComponent(); int maValeur = intFromDLL(); PageTitle.Text = String.Format("{0.0}", maValeur); } } }
L'exception System.MethodAccessException n'a pas été gérée
Message=Attempt to access the method failed: monAppliTestWP7.MainPage.intFromDLL()
Merci d'avance pour votre attention.
Partager