Is it possible to find out a record is lock by rlock()in VFP From VB.
My colleague is try to write an VB apllication to share table with my current VFP program. but he can't determine the record is it rlock by the vfp. Can some body give some comment ?
You could create a VFP COM .DLL that exposes whatever methods and properties you wish - custom or "passthrough" from VFP. You just have to establish what functionality you want to provide.
VB can easily use a COM component, and you don't have to worry about API calls.
A Very simple example is to create a project ComDll with just the following .PRG in it. Then compile it as a Single Threaded COM server.
Code:
* maincomdll
define class junk as custom olepublic
procedure sayhi
Return "Hello World"
endproc
enddefine
Then create a program to call it. e.g. in VFP it would be as follows, but it wouldn't be much different in VB.
Code:
* instanstiate with comdll.junk in commdll.dll
* e.g.
ox = createobject("comdll.junk")
?ox.sayhi()
You can extend this to add more methods and add properties that can be set/checked by the COM server or the caller!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.