>>>A month of two ago I (with the help of other on the UT) wrote a simple function which sends email through a specified SMTP server through the WINSOCK dll. The program works fine with Windows 98/2000 but it will not work with Windows NT/XP. The error is:
>>>
>>>"Class definition MSWINSOCK.WINSOCK is not found"
>>>
>>>This error is on the line which I create an instance of the winsock object:
>>>
>>>oSocket = create( 'mswinsock.winsock' )
>>>
>>>
>>>Does the winsock.dll differ between operating systems that would cause this? Does anyone have a clue what this would be?
>>>
>>>Wes
>>
>>Start -> Run -> RegEdit
>>Ctrl+F enter mswinsck.ocx - this will likely be found in a value in the right hand pane, click on the ProgID in the left hand pane for the Class ID (GUID) that has been expanded. In the ProgID you will likely see:
>>
>>oWinsock = CreateObject( "
MSWinsock.Winsock.1" )
>>
>>Hope this helps.
>
>I searched the registry and did not find an instance of mswins
ock.ocx. I am really getting confused about where the object is being created...does the dll or the ocx file create the object; from what I have read the ocx file is an ActiveX control file??
You have a superfluous O in your MSWinSck.OCX file name above. It's also a good idea to collapse any expanded branches in the left hand pane and click on the root, to make sure you start searching the Registry at the beginning.
OCX DLL ACTIVE-X COM COM+ -- MS needs a hot poker shoved where the "sun don't shine"!
Did you try adding ".1" (digit one not the letter L) to the end of the ProgID?
censored.