|
-
Jan 15th, 2002, 03:56 PM
#1
Thread Starter
Member
TCPIP inside of COM
I have a current working dll that I need to add TCP/IP socket functionality in. I know to use MSWinSock.dll but how do I reference it? It's not referenceable. DECLARE?
The TCP/IP fucntionality would be like a Client. I have the code I need to run in a test project but I was using the WinSock control and dumping into my dll was more difficult then I thought.
I need to send a message to a server and wait for a response.
Damn, It sounds so simple... any help would be appreciated.
Shadow
-
Jan 15th, 2002, 04:32 PM
#2
add the component
Dim WithEvents obj As Winsock
Set obj = New Winsock
I think that should do it
-
Jan 15th, 2002, 04:44 PM
#3
Thread Starter
Member
-
Jan 15th, 2002, 06:02 PM
#4
Addicted Member
Make it a reference, not a component.
remove it from the components and the toolbox, and add it to your references instead. The OCX can act either as a DLL or an OCX, but not both at once.
"1 4m 4 1337 #4xz0r!'
Janus
-
Jan 16th, 2002, 10:33 AM
#5
Thread Starter
Member
OK... So far so good... now...
... one more question... I can compile with no problems and everything seems to be working fine... BUT....
How would I wait for a response from the server. I have set the localport and set to listen but with out any events where can I look for the "DataArrival" event?
Should I:
Dim WithEvents obj as Winsock
Like Cander suggested?
ne comments welcome....
Shadow
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|