Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Jirí Bureš
  Where is Jirí Bureš?
 Czech Republic
 Jirí Bureš
Subject: RE: How to use this library?
Thread ID: 288931 Message ID: 289008 # Views: 69 # Ratings: 1
Version: Visual FoxPro 9 Category: Active X Controls & OLE Automation
Date: Monday, December 27, 2010 6:44:51 PM         

> Hello conference.
> Advise please, someone to work on with the library? How to call methods INIT and RUN? Registration will take place without a problem but in order CREATEOBJECT the reported error 0x80004002 (unknown interface).
> What should I do? Thanks for the advice ...
> 62af3904-0136-40ad-a93e-2991e039e160.zip -> PVTPZP.zip
> 9ed795e7-6e11-487a-b4e5-654fba1ee51f.txt -> PVTPZP.z01
> Ice
> https://www.foxite.com/uploads/62af3904-0136-40ad-a93e-2991e039e160.zip
> https://www.foxite.com/uploads/9ed795e7-6e11-487a-b4e5-654fba1ee51f.txt

Without looking at the code, just general considerations:
Have you had your library loaded, colleague?
That is:

IF ATC("MyClassLib", SET("CLASSLIB")) == 0 && Class library isn't loaded yet
   SET CLASSLIB TO "C:\MyProgs\MyLibs\MyClassLib.VCX" ADDIT

** or something like that, before issuing

loMyControl = CREATEOBJECT("MyClass") && ?


On the footnote: I believe you do not need to call Init explicitly when you issue CREATEOBJECT(), the Init event is executed automatically (if there's some code in it).




How to use this library? Posted by Ivan Jamrich @ 12/26/2010 10:54:42 PM
RE: How to use this library? Posted by Ilya Rabyy @ 12/27/2010 6:44:51 PM
RE: How to use this library? Posted by Ony Too @ 12/28/2010 6:23:49 AM