I recently migrated the code on visual studio 2005(x64) to visual studio 2010(x86) (Both on .Net 2.0 framework). I get this error at
winsock declaration : Public Winsock2 As AxMSWinsockLib.AxWinsock
Call Stack Error :
The variable 'Winsock2' is either undeclared or was never assigned
I tried the solutions on the net but couldn't resolve.
1) I changed the Target from 'Any CPU' to 'x86' in the configuration manager.
2) Tried to download .dll files online and add it in project but no change.
Please suggest if I can resolve this error on VS2010 or is it better I find an alternative to winsock on VS2010.
I understand this is an outdated question as the tools used are very old but I have to make changes on an old product of the company I work for.