Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[VB 6 problem]Class MSWinsockLib.Winsock of control Socket was not a loaded control class.


iraasta
 Share

Recommended Posts

I know i know. There was a lot of tutorials. But none of them works for me. I've tried everything.

I'm using VB6.0 Enterprise with SP6 on Windows 7 64bit. I tried everything and still it says:

"Class MSWinsockLib.Winsock of control Socket was not a loaded control class."

Seriously i even tried manually download MSWINSCK.OCX. And it doesnt work.

Tried starting in compatible mode, tried checking and unchecking every checkbox.

Instaled sp6 in System32 and in SysWOW64 aswell.

Tried reinstalling VB and downloading it from another sources.

Nothing…
Link to comment
Share on other sites

When i open references there is NO mswinsck.oxc however i can add this in browse, when i add this and open project it still errors. When i shut down VB mswinsck dissapears from the list and i need to add this again. When i try to add this it shows

Name conflicts with existing module, project, or object library.

Even if i click accept there is no reaction.
Link to comment
Share on other sites

Because it's not listed as the OCX, but as something else. (or should be). Also, adding the reference has no use. Your copy of the source is already corrupt and broken once you get that error, needs to be deleted and redownloaded.

As i said though, are any of them marked as MISSING?
Link to comment
Share on other sites

I didnt have rest of it. It seems now like this:

![](http://i47.tinypic.com/15gqjdh.png)

And error changed to "Line 19: Property Icon in frmMain had an invalid file reference."

But it is better than was ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

/Edit Ok it was lack of frx. Is it proper look of that window? Never saw that so i dont know is it look like it should or not
Link to comment
Share on other sites

Isn't the Winsock a user control in the components list, not in the references?

~~I am not sure this will work but you may try the next,

1\. Download the mswinsck.ocx somewhere from.

2\. I don't know if the mswinsck.ocx has a 32bit and 64bit version, if you know it's a 64bit version then place it in SysWOW64, if you don't know then place it in System32.

3\. Open notepad or any text editor and write the following code, DO NOT FORGET to replace the [Location MSWINSCK.OCX] with the location folder the mswinsck.ocx is placed in.

```

cd [Location MSWINSCK.OCX]

regsvr32 MSWINSCK.OCX
```

4\. Save the text file as a ".bat" file somewhere.

5\. Explore to the ".bat" file you created, right-click it and run as admin.~~

Never mind, since you see the icon, you don't have to do this.
Link to comment
Share on other sites

It works while compiled now. Ok then in tutroial it sais:

> Open up **frmMain**
>
> Add the following items to it:
>
> 1\. A Label, call it **lblSwords**
>
> 2\. A Label, call it **lblSwordsExp**

So where to add this labels if what i see looks like that what i sent 3 posts up.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...