Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call this C# function from VFP 8.0
Message
De
11/08/2005 15:39:26
 
 
À
09/08/2005 10:48:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01039530
Message ID:
01040383
Vues:
28
Tracey

The other company generated a COM DLL and we could work with it, by using CreateObject()

We never knew what was the problem with the first one.

Thanks


>Are there any parameters missing by anychance? What dependencies exist for the dll? Is the version on the dependencies wrong or are they missing entirely? In other words, what operating system dlls does ValidacionClaveSecreta.dll rely on? Also, was the dll registered on the workstation?
>
>We call a dll this way:
>
>
>DECLARE INTEGER PR_Contract IN PrintEngine STRING, STRING, STRING, STRING, INTEGER, INTEGER
>
>IF ExpContract(hdir+'PROUT.DAT')
>
>	IF PR_Contract(hdir+'PROUT.DAT', sprinter, sbin, 'PRFORM', iMethod, num_copies) = 0
>
>
>
>There is plenty of information on the web that you may find helpful to read (the links explain it much better):
>
>http://www.easydesksoftware.com/news/news16.htm
>http://www.easydesksoftware.com/news/news15.htm
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/97374dcc-c9e5-48eb-9ab3-722cc780eb19.asp
>
>>Hi, I am trying to use a C# function assembled in a DLL, it was provided by another company but I get this error "Cannot find entry point".
>>
>>I am trying this code:
>>
>>DECLARE integer getCheckDigit IN ValidacionClaveSecreta.dll
>>? getCheckDigit("001123456789")
>>
>>
>>Or should I use CreateObject() ?
>>
>>
>>Please any one could tell me how to do it.
>>This function receives a string of digits and returns an integer (Check Digit)
>>
>>I already registered the DLL (ValidacionClaveSecreta.DLL) under .Net Configuration 1.1 but I don't know how to invoke it from VFP
>>
>>Only a member is exposed, the public function CheckDigitGeneration()
>>The company explains this C# sample code:
>>
>>
>>CheckDigitGeneration objCheckDigit = new
>> CheckDigitGeneration(txtClave.Text);
>>
>>lblCheckDigit.Text = objCheckDigit.getCheckDigit().ToString();
>>
>>
>>
>>Thanks,
>>
>>Juan C.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform