Im just bearly getting use to using VC++ and was woundering if any of you could help me. Im making a program. A simple one. that should connect to itself and send a message when it does. I have turned my winsock to a veriable (m_winsock1) and I Try to use the command m_winsock1.connect("127.0.0.1", 1234); And of course I get an error when comiling.

error C2664: 'Connect' : cannot convert parameter 1 from 'char [10]' to 'const struct tagVARIANT &'
Reason: cannot convert from 'char [10]' to 'const struct tagVARIANT'
No constructor could take the source type, or constructor overload resolution was ambiguous

Any hints?