Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call this C# function from VFP 8.0
Message
From
09/08/2005 10:48:16
 
 
To
09/08/2005 09:46:01
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01039530
Message ID:
01039549
Views:
23
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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform