Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Andy Kramek
  Where is Andy Kramek?
 Hot Springs Village
 Arkansas - United States
 Andy Kramek
 To: DENNIS JONES
  Where is DENNIS JONES?
 salina
 Kansas - United States
 DENNIS JONES
 Tags
Subject: RE: Call DLL IN VFP
Thread ID: 153655 Message ID: 155005 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Friday, December 21, 2007 12:48:10 PM         
   


> But, that's the whole point! Any 32 bit dll which exposes a public interface can be converted to a Foxpro class which Implements the dll's functions. My topic dealt with a third party license manager, but the basic idea would work equally well with other COM objects.

I understand what you are saying. The issue is that it will only work if the DLL in question is an Automation Server (i.e. implements iDispatch and iUnknown). If the DLL is not built that way, then your technique will not work because IMPLEMENTS relies on accessing the Type Library and if the DLL is not created as an automation server it will not have exposed a type library.

If the DLL is an automation server, then VFP can also instatniate it directly using CREATEOBJECT().

Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA

ENTIRE THREAD

Call DLL IN VFP Posted by Paul Newman @ 12/6/2007 7:04:52 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/20/2007 12:22:28 AM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/20/2007 12:06:21 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/20/2007 8:04:41 PM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/20/2007 9:38:33 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/21/2007 12:40:19 AM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/21/2007 12:48:10 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/21/2007 11:53:54 PM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/22/2007 11:40:09 AM