grahamrhind
Technical User
Hello,
I have written a VFP 6 dll, which I have tested and which works without problem when called from the VFP environment.
A tester is now trying to access this same dll from a non-VFP environment, calling using Visual Basic code.
The tester has succeeded in creating the object. However, when sending data to one of the methods, he gets the error:
Error: Automation error, Library not registered.
Example code to access the dll from VFP is:
oTemp=CREATEOBJECT("grctools.grctools")
GRCReturnedString=oTemp.nonnum('1234-5678-90',1)
The code being used in VB is:
Dim oGrcTools As Object
Set oGrcTools = CreateObject("grctools.grctools")
txtOutput.Text = oGrcTools.nonnum(txtInput.Text, 1)
A couple of questions about this:
1) Does anybody have any experience with something like this - can they identify where the problem(s) lie?
2) When one runs the setup wizard from VFP to make a distributable exe (which the tester has done), is a different set of files included for a VFP .exe file than when distributing a .dll file? I noticed when trying to create a setup for the .dll that the distribution file was twice as large as for an .exe file, but I'm wondering what this is related to. If a different set of files are required, that may be the issue.
Many thanks in advance!
I have written a VFP 6 dll, which I have tested and which works without problem when called from the VFP environment.
A tester is now trying to access this same dll from a non-VFP environment, calling using Visual Basic code.
The tester has succeeded in creating the object. However, when sending data to one of the methods, he gets the error:
Error: Automation error, Library not registered.
Example code to access the dll from VFP is:
oTemp=CREATEOBJECT("grctools.grctools")
GRCReturnedString=oTemp.nonnum('1234-5678-90',1)
The code being used in VB is:
Dim oGrcTools As Object
Set oGrcTools = CreateObject("grctools.grctools")
txtOutput.Text = oGrcTools.nonnum(txtInput.Text, 1)
A couple of questions about this:
1) Does anybody have any experience with something like this - can they identify where the problem(s) lie?
2) When one runs the setup wizard from VFP to make a distributable exe (which the tester has done), is a different set of files included for a VFP .exe file than when distributing a .dll file? I noticed when trying to create a setup for the .dll that the distribution file was twice as large as for an .exe file, but I'm wondering what this is related to. If a different set of files are required, that may be the issue.
Many thanks in advance!