Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I run a VFP8 DLL COM object from within .NET?

Status
Not open for further replies.

jbailey268

Programmer
May 25, 2005
51
US
I am programming in VFP 8 and have a DLL that works very successfully when called from VFP. It has been shown to do the job when object instantiation occurs in Access, Excel and even from a stored procedure in SQL.
When a co-worker tried to call it from the latest .NET application it fails.
Since VFP9 touts that it has more compliance with .NET ; was wondering if the issue is solved in VFP9.

It is called by saying "oData=Createobject(validcheck)"
Then retval=odata.verifylicense(param1,param2,param3…param9)
The DLL is installed on the computer in question but the person keeps claiming that the error says 'expected parameters' or 'invalid parameters,' even though all the parameters are allegedly passed.
It would really be cool to show him that this DLL can be instantiated from a .net app.
There are 2 questions here. Can it be done using VFP8? If so how?
 
Without doubt!

I write dll's for use in .net all the time

several things are real important particularly if used in asp.net apps. The DLL needs to be registered and a reference placed in the .net project and if any disk writing is involved you will need to give SYSTEM NETWORK user write access to the dll location. Debugging and use are a little complicated. But as i said "without any doubt" it is done all the time v6, v7, v8 or v9 I use them all. If i knew a little more about what the dll does and maybe a copy of the dll I could send some snippits of .net code

Steve Bowman
Independent Technology, Inc.
CA, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top