Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 To: pratap adhikary
  Where is pratap adhikary?
 jabbalpur
 India
 pratap adhikary
 Tags
Subject: RE: VFP Com Object
Thread ID: 395509 Message ID: 396074 # Views: 60 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: VFP and .NET
Date: Wednesday, January 22, 2014 5:49:15 PM         
   


> Hi Experts
>
> I have build COM DLL from VFP with , for example :-
>
> DEFINE CLASS Math AS SESSION OLEPUBLIC
>    FUNCTION Multiply(tnNum1, tnNum2)
>       LOCAL lnResult
>       lnResult = tnNum1 * tnNum2
>       RETURN lnResult
>    ENDFUNC
> ENDDEFINE
> 

> now I take reference the dll in Visual Studio and register the dll(administrator account), and able to see the com object(Math.Multiply)
> after successful Build the exe from Visual Studio, I have installed the latest exe at the client end
> but com object failed !
>
> Is that com object has to be distributed each clients separately and registered there, if yes then lots of work.
> Or
> Is that anyway to achieve WITHOUT distributed and registered .
>
> thanks in advance
> Best Regards
> Pratap.

You also have to install the VFP runtimes for the COM to work. With regard to registering etc. if you use a manifest in Visual Studio then you will not need to register the COM. But the runtimes for VFP are still needed.

Bernard

** If you see someone without a smile, give em one of yours :) **
My Blog

ENTIRE THREAD

VFP Com Object Posted by pratap adhikary @ 1/15/2014 3:30:55 PM
RE: VFP Com Object Posted by Borislav Borissov @ 1/15/2014 3:44:25 PM
RE: VFP Com Object Posted by Anders Altberg @ 1/15/2014 4:26:17 PM
RE: VFP Com Object Posted by pratap adhikary @ 1/16/2014 4:55:13 AM
RE: VFP Com Object Posted by Anders Altberg @ 1/16/2014 9:35:56 AM
RE: VFP Com Object Posted by Mike Gagnon @ 1/23/2014 12:33:14 AM
RE: VFP Com Object Posted by Bernard Bout @ 1/22/2014 5:49:15 PM