Re: URGENT: FoxPro COM Object

From: Eric den Doop (ericdendoop_at_xspamblockxfoxite.com)
Date: 09/11/04

  • Next message: Anders Altberg: "Re: URGENT: FoxPro COM Object"
    Date: Sat, 11 Sep 2004 11:04:58 +0200
    
    

    Hello, Faraz!

    You have to create a COM DLL in VFP. A COM server is a OLEPUBLIC class. A
    sample class definition is:

    DEFINE CLASS bizrules AS Custom OLEPUBLIC
        PROCEDURE DeleteCustomer (tnCustomerID As Integer)
            * do some checking here...
            DELETE FROM Customer WHERE id == tnCustomerID
            RETURN some_Value && for example .T. if DELETE succeeded
        ENDPROC
    ENDDEFINE

    See VFP help on DEFINE CLASS for more info.

    -- 
    Eric den Doop
    www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8 
    

  • Next message: Anders Altberg: "Re: URGENT: FoxPro COM Object"

    Relevant Pages

    • Re: URGENT: FoxPro COM Object
      ... A COM server is a OLEPUBLIC class. ... sample class definition is: ... DEFINE CLASS bizrules AS Custom OLEPUBLIC ... See VFP help on DEFINE CLASS for more info. ...
      (microsoft.public.fox.programmer.exchange)
    • Re: URGENT: FoxPro COM Object
      ... A COM server is a OLEPUBLIC class. ... sample class definition is: ... DEFINE CLASS bizrules AS Custom OLEPUBLIC ... See VFP help on DEFINE CLASS for more info. ...
      (microsoft.public.fox.helpwanted)
    • Re: DLL?
      ... An OLEPUBLIC class is nice because it can go anywhere. ... your VFP web service mtdll - it's separated from the interface. ... Is that the best route to take? ...
      (microsoft.public.fox.programmer.exchange)

    Loading