J'ai développé un serveur Com et Windows XP 32 bits. Pour tester le serveur Com j'ai créé un client avec C# pour appeler les fonctions via Interop. Tout fonctionne bien, mais maintenant je dois faire fonctionner ComServer sur un système Windows 7 64 bits. J'ai pris la DLL ComServer et le C# EXE sur l'ordinateur 64 bits, enregistré la DLL ComServer avec regsrv32 et démarré le programme C#. Wen i a d'abord essayé d'accéder à une fonction ComServer tout ce que je reçois est l'erreur:Serveur 32 bits Com sur système 64 bits
System.Runtime.InteropServices.COMException (0x80040154): Die COM-Klassenfactory für die Komponente mit CLSID {BA4D7F46-A47E-4CB9-A153-2B4657C4DD29} konnte aufgrund des folgenden Fehlers nicht abgerufen werden: 80040154.
en anglais:
System.Runtime.InteropServices.COMException (0x80040154): The COM-Classfactory for the Component with the CLSID {BA4D7F46-A47E-4CB9-A153-2B4657C4DD29} was not able to be called due to the Error: 80040154.
Whhat qui ne va pas ici? N'est-il pas possible d'appeler une DLL 32 bits sur un système 64 bits? Si oui, comment fonctionnent tous les autres programmes 32 bits?
concernant camelord
OK, merci. C'est ce que je pensais. J'essaie de le compiler pour 64 bits. – camelord
@camelord: J'ai mal tapé. Le programme doit être 32 bits, pas 64 bits. – sharptooth