Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using winsock object
Message
 
À
09/08/2003 13:43:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00818598
Message ID:
00820675
Vues:
11
Try AddObject instead:
  * Add a Winsock control
  ThisForm.AddObject(    ;
    "oleWinsock",        ; && Local object name
    "Winsock",           ; && Your class name
    "MSWinsock.Winsock")   && OLE ProgID
Make sure you've SET CLASSLIB TO your class library, or SET PROCEDURE TO your .prg.




>i have defined a class in myprog.prg like this.
>
>DEFINE CLASS frmSock AS OleControl
> OleClass = "MSWinsock.Winsock"
>...
>ENDPROC
>
>
>and from a form i wrote
>
>This.NewObject('sock', 'frmSock','myprog.prg')
>
>the problem is that vfp 6 doesn't creat the winsock object directly but shows the insert object form (the form that is used to show installed ocx file)
>
>why ?

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform