pwakeford
March 9th, 2001, 10:55 AM
Hi I'm a newbie to Visual C++ (I have a diploma in IT, and majority of my course was C++).
I've created a dialog based MFC application with a winsock control as a member variable to the dialog.
The problem I'm having is with the datatypes that I'm using in the methods of the winsock object.
The autocomplete feature says that I need 2 parameters of datatype variant in the format:
const Variant &remotehost and const Variant &remoteport.
I tried creating a LPCSTR pointer to a domain name ("mail.xxxx.xxxx") but I received errors with the datatypes for the parameters.
Can anyone explain to me what I'm doing wrong and what the logic behind the datatyping should be.
Thank you kindly in advance.
I've created a dialog based MFC application with a winsock control as a member variable to the dialog.
The problem I'm having is with the datatypes that I'm using in the methods of the winsock object.
The autocomplete feature says that I need 2 parameters of datatype variant in the format:
const Variant &remotehost and const Variant &remoteport.
I tried creating a LPCSTR pointer to a domain name ("mail.xxxx.xxxx") but I received errors with the datatypes for the parameters.
Can anyone explain to me what I'm doing wrong and what the logic behind the datatyping should be.
Thank you kindly in advance.