Home All Groups Group Topic Archive Search About

Runtime Error 339: MSWINSCK.ocx...With a Twist

Author
21 Mar 2006 1:49 AM
masenf
Okay here's my damage: i made a small program for stealthy instant
messaging at school in VB6, when i run it at home it works fine, but
when i run it at school it spits out a Runtime Error saying that
mswinsck.ocx or one of its dependencies is not correctly registered.
I've tried almost everything i could think of and search up. I first
tried simply putting mswinsck.ocx in the same folder as the program,
next i tried copying the file to system32...no write access, then
finally i tried registering the file with regsvr32, which i did not
have permission to use. The computers are about half win2k and half xp.
I would really like to figure out how i could get this program to run
short of rewriting it using only API calls (i'm not nearly that cool).
If you have any more ideas, that'd be great.

thanks
-masen

Author
21 Mar 2006 4:49 AM
mayayana
You'll need to get permission to register the
control if you want to use it. But I think you
also might find that using API is not so bad.
vbip.com has a class designed to mimic the
winsock ocx. You might be able to use that
directly as an ocx substitute and understand how
it works as you go along, rather than needing
to write winsock API code from scratch.

Show quoteHide quote
> Okay here's my damage: i made a small program for stealthy instant
> messaging at school in VB6, when i run it at home it works fine, but
> when i run it at school it spits out a Runtime Error saying that
> mswinsck.ocx or one of its dependencies is not correctly registered.
> I've tried almost everything i could think of and search up. I first
> tried simply putting mswinsck.ocx in the same folder as the program,
> next i tried copying the file to system32...no write access, then
> finally i tried registering the file with regsvr32, which i did not
> have permission to use. The computers are about half win2k and half xp.
> I would really like to figure out how i could get this program to run
> short of rewriting it using only API calls (i'm not nearly that cool).
> If you have any more ideas, that'd be great.
>
> thanks
> -masen
>
Author
21 Mar 2006 5:58 AM
masenf
yeah thanks, i found that CSocket class that works really well, i
didn't have to modify my old code at all barely, and plus that's one
less dependency, so i'm happy