When trying to compile in the "Winsock Control" component on Windows 10, I get this error:
mswinsck.ocx could not be loaded
Notably, I have installed VB6 SP6, and with SP6 it works great on Windows 8.1 and Windows 7, but it won't compile on Windows 10.
Also notably, the compiled .exe
, when compiled from Win7/8, has no problem loading ws2_32.dll
. It's just the compiling step that doesn't work on Win10.
Running Dependency Walker, depends.exe
suggests mswinsck.ocx
can't be loaded because it's depending on API-MS-WIN-CORE-SYNCH-L1-2-0.DLL
and API-MS-WIN-CORE-PROFILE-L1-1-0.DLL
and API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL
and a bunch of other DLLs with similar names (I think these DLLs have something to do with SysWOW64), which can't be found:
Does anyone know how to compile in "Winsock Control" in VB6 on Win10?
(Also notably, it seems the MSFlexGrid component is un-compilable on Win10 in a similar fashion, but this question is about the WinSock control, not MSFlexGrid).
EDIT: additional info: I have installed "VB6 Service Pack 6", VB version is "Version 9782 VBA retail 6.0.9782", and the version on the mswinsck.ocx
file itself is 6.1.97.82
(and thanks to the comments, I know a newer one exists: 6.1.98.16
)
4E97BF9519C83835DA9DB309E61EC87DDF165167
)6.1.98.16
, my copy have version6.1.97.82
, your is newer than mine! (also your copy was signed by microsoft in 2009, my copy was signed by microsoft in 2004) - but it seems that's not the whole story, replacing my copy with yours didn't change the errors i'm getting.. wonder where your file comes from (probably a package, possibly from Windows Updates itself? idk)