Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Did anyone create FLL with VS2005?
Message
De
07/07/2006 10:32:08
 
 
À
06/07/2006 13:40:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01134216
Message ID:
01134438
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
Hello Cetin,

one cannot compile a mixed managed/unmanaged dll which calls into _fastcall methods - _fastcall is incompatible with the /CLR switch.
http://msdn2.microsoft.com/en-us/library/fb18b15e.aspx

And since all LCK functions and all selfwritten functions are declared with the fastcall calling convention, managed FLL's aren't possible.

If you just want to pass a few parameters to a C# class without using COM interop you can write a standard C DLL.

...
void _stdcall YourFunc(int someParam, char* someParam2)
{
// call C# code ..
}

yourproject.def file:
LIBRARY your.dll
EXPORTS
YourFunc

then use DECLARE in VFP.

Regards
Christian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform