use winsock in dll 
Author Message
 use winsock in dll

Winsock is ActiveX and its Event can only use in a Form. I
want to create a dll, which have a query method to use
Form's sendData(), and after the Form's Data_Arrival Event
which can tell return result to query(). How?

Public Function query(ByVal queryStr) As String

     Winsock1.SendData queryStr & vbNewLine

     'notify result arrival

End Function

Thanks.



Sun, 05 Sep 2004 17:34:04 GMT  
 use winsock in dll
Get the CSocket replacement class from www.vbip.com

Max Bolingbroke


Quote:
> Winsock is ActiveX and its Event can only use in a Form. I
> want to create a dll, which have a query method to use
> Form's sendData(), and after the Form's Data_Arrival Event
> which can tell return result to query(). How?

> Public Function query(ByVal queryStr) As String

>      Winsock1.SendData queryStr & vbNewLine

>      'notify result arrival

> End Function

> Thanks.



Sun, 05 Sep 2004 23:51:42 GMT  
 use winsock in dll
Private WithEvents myWinsock as Winsock

OK you end up having to do plenty of busy waiting loops to catch data coming
in, but it works


Winsock is ActiveX and its Event can only use in a Form. I
want to create a dll, which have a query method to use
Form's sendData(), and after the Form's Data_Arrival Event
which can tell return result to query(). How?

Public Function query(ByVal queryStr) As String

     Winsock1.SendData queryStr & vbNewLine

     'notify result arrival

End Function

Thanks.



Sat, 18 Sep 2004 18:11:41 GMT  
 use winsock in dll
After I download wsc_ftp_client.zip

  when I deploy it(wsc_ftp_client.exe and other *.ocx) to
another PC(which no VB), it will appear an error message,  
run-time error "91":object variable  or with block
variable not see.

  this error message comes from the code
    set wskControl=new mswinscklib.winsock
  can you give me a solving method.

Thanks .

Quote:
>-----Original Message-----
>Get the CSocket replacement class from www.vbip.com

>Max Bolingbroke



>> Winsock is ActiveX and its Event can only use in a
Form. I
>> want to create a dll, which have a query method to use
>> Form's sendData(), and after the Form's Data_Arrival
Event
>> which can tell return result to query(). How?

>> Public Function query(ByVal queryStr) As String

>>      Winsock1.SendData queryStr & vbNewLine

>>      'notify result arrival

>> End Function

>> Thanks.

>.



Sun, 03 Oct 2004 11:51:05 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. using a winsock control in a DLL

2. Problems using winsock control in an ActtiveX DLL

3. Using Winsock in an ActiveX Dll

4. Using Winsock from within a ActiveX DLL

5. Active X dll using winsock

6. Using Winsock.dll with VB4.0?

7. Need help with VB using winsock.dll

8. Using a Winsock Control in a ActiveX DLL

9. Using a Winsock Control in a ActiveX DLL

10. activeX dll, using Winsock and some kind of a timer

11. Using Winsock in an ActiveX Dll

12. Anyone tried setsocketopt (winsock.dll) using VB50?

 

 
Powered by phpBB® Forum Software