Visual Studio 08, Winsock issue

Associate
Joined
4 Mar 2007
Posts
315
Location
United Kingdom
Hello all,
Now before I start let me tell you about what I aim to do, I want to make a local port scanner to see what ports are open on my own network. I know the coding is fine as I've executed a test copy on a friends computer. However as I wanted to make a revised version in visual studio 08, I have used the winsock 6 control, however I come accross this issue and every time i try to run the app I get this error:

An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Now I'm not entirely sure what this is, so I downloaded everything relative to the COM control (winsock library) however I am still getting this issue.
I am running on a 64 bit system using vista if that helps.

Thanks.
 
Hmm, it's been a while since I used VS but here goes...

If you are sure you want to use Winsock (wasn't this deprecated/replaced eons ago??) you'll need to add a reference to oswinsck.dll in your project. It's something like:

Add References > COM > oswinsck.dll

Is there any reason your using COM instead of .NET? You'd be better of re-writing your code to utilise Net.Sockets.
 
Last edited:
Back
Top Bottom