Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Cannot get appropriate Event fired with WinSock control

Hello all,

My WinSock control (MSWINSOCK.ocx - Microsoft WinSock
Control 6.0 (SP5)) is behaving not well, to put my issue
kindly...

I am having a problem of getting Events fired after my
WinSock client control is connected to the server.

As soon as my WinSock client fires Connect method, either
Connect() or Error() Event should fire. This doesn't
simply happen... It just hangs right there...

THe snippet of my code is as follows:

With sckSocket
.Protocol = sckTCPProtocol
.RemoteHost = m_Host
.RemotePort = m_Port
.Connect
Debug.Print .State 'gives me 7 for Connected
Debug.Print .RemoteHostIP 'gives me the right IP
address of the server I want to connect to
End With

Does anyone have any idea why???

Thanks for your time.
---
Tetsuya Oguma, Sydney, Australia

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Winsock.sendData Anand Nichkaode Excel Discussion (Misc queries) 0 October 7th 08 10:14 AM
Searcing foran Excel event fired. Dwipayan Das Excel Worksheet Functions 1 July 7th 08 08:46 AM
call a function on control click event tkraju via OfficeKB.com Excel Discussion (Misc queries) 7 August 25th 06 07:22 AM
Event hundler to control the Excel function arguments Yattabi Excel Worksheet Functions 0 December 6th 04 10:41 PM
VBA- Calendar Control Click Event W Specific Select Case requirements Mark[_23_] Excel Programming 0 September 12th 03 06:24 PM


All times are GMT +1. The time now is 11:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"