Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using winsock object
Message
 
To
09/08/2003 13:43:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00818598
Message ID:
00820675
Views:
10
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform