Yes, the company sent us a COM DLL
It was easier to work.
Thank you.
>Juan,
>
>As Martin said, the object has to be made available using COM. Assuming that it is, the initialization will look something like this:
>
>Local loCheckDigit as ValidacionClaveSecreta.CheckDigitGeneration
>
>loCheckDigit = CreateObject("ValidacionClaveSecreta.CheckDigitGeneration","001123456789")
>
>There's only one problem: this code won't work. Someone correct me if I'm wrong, but I don't think you can pass parameters to a constructor (Init()) over COM. So you'll need some other way to set the value. If there was a method called setCheckValue(), then you're code would look something like this:
>
>Local loCheckDigit as ValidacionClaveSecreta.CheckDigitGeneration
>
>loCheckDigit = CreateObject("ValidacionClaveSecreta.CheckDigitGeneration")
>loCheckDigit.setCheckValue("001123456789")
>? loCheckDigit.getCheckDigit().ToString()
>
>
>
>>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.