Solved

Winsock in ACtiveX DLL

Posted on 2004-08-19
3
422 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

773 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