Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with C# to VFP translation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrats & ententes
Divers
Thread ID:
01469828
Message ID:
01503073
Vues:
134
FWIW, West Wind Client Tools also includes wwDotNetBridge which provides similar .NET access services, albeit with different syntax semantics...

More info here:
http://www.west-wind.com/webconnection/docs?page=_2940qlt64.htm

+++ Rick ---


>>Thanks Sergey.
>>Again right on the money! - I contacted .NET Extender, and got it all working,,
>>Thanks everybody for helping out...
>>Cyrus
>>
>>>A .NET dll cannot be used directly in VFP. You either have to use third party utility like .NET Extender for VFP or read up at http://west-wind.com/articles.aspx on how to use interop.
>>>
>>>>Thanks for the sample Viv.
>>>>
>>>>I did try that already, but here is the MAIN problem;
>>>>
>>>>When I do:
>>>>xx = CREATEOBJECT("EncryptionManager")
>>>>
>>>>I get the error: "External Module/OLE is not installed on this computer".
>>>>As you know, this problem is usually resolved by registering the DLL via:
>>>>
>>>>>> RegSvr32 EncryptionManager.Dll
>>>>
>>>>However, when I try it, the registeration FAILS and gives the error; "Could not find entery point.....".
>>>>
>>>>As I mentioned below, the Developers of the DLL told me to run the following commands to REGISTER the DLL::
>>>>
>>>>>>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\IcvGacUtil /i C:\ICVERIFY\ICWin403\SecurityService.dll
>>>>>>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm C:\ICVERIFY\ICWin403\SecurityService.dll /tlb
>>>>>>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\IcvGacUtil /i C:\ICVERIFY\ICWin403\EncryptionManager.dll
>>>>>>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm C:\ICVERIFY\ICWin403\EncryptionManager.dll /tlb
>>>>
>>>>Which I did, and they all installed sucessfully. But, my CREATOBJECT statement still can not instantiate the object saying:
>>>>"The External Module/OLE is not installed on this computer".
>>>>
>>>>The Developers also told me that in the VB and in C# sample code, they ADDED the DLL to their "Project". So, I went to VFP Options, and then "Controls". The problem is the EncryptionManager is not even listed there either, for me to drop it to a form.
>>>>
>>>>I can't imagin VFP not having the same facilities to run this type of DLL module than there is in VB and C#.
>>>>Am I missing something ?
>>>>
>
>Hi Cyrus,
>
>Could you post your finished code, .NET Extender references and all? Much appreciated.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform