Solved

Winsock in ACtiveX DLL

Posted on 2004-08-19
3
419 Views
Last Modified: 2013-11-13
Experts,

I am writing an ActiveX DLL and want to use Winsock Control in this DLL. How can I go about doing this. If not possible what do you suggest.
Using VB6.


Thanks
0
Comment
Question by:hkaraman
3 Comments
 
LVL 3

Expert Comment

by:realrael
ID: 11849188

if i understand your query right, wouldn't that be as simple as adding the winsock control component in your activex dll project?

project -> components -> check the microsoft winsock control.

then use the component in code...

dim w as Winsock

- rael
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 11852000
In order you use the Winsock control in a DLL, you will have to add a form to the project and drop a winsock control onto it.  Then just call its methods as you would normaly.
0
 
LVL 8

Accepted Solution

by:
mladenovicz earned 500 total points
ID: 11858223
I am using class module that replaces Winsock control. Check this:

http://www.vbip.com/winsock-api/csocket-class/csocket-class-01.asp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now