The problems are:
1º- the operator == is not accepted to compare CString types
2º- The system do not recognize a argument CString type at the function looking(CString name)
Hi,
I want to create a function witch receives a string as a argument and the compares is with another string to see if there are equal (like searching a name in a database)
so i have:
int looking(CString name)
{
if (name==outro.name1)
return 1;
else
return 0;
}
Note: outro is just a...
Yes they do.
When you create a derived class, she inherits all member functions and member variables from the base class.
In this case you can declare as public the pointer do the CPtrList class.
hope i could help you!!
I got the problem!
I declared a struct and a list in a CListDoc class.
And now i want to use them in a function witch is a member function from another class witch is not derived from CListDoc.So when i have:
void declaredclass::function()
{
//if i create a object from CListClass to the use...
Hi,
in a program i declared a list and a struct as public in a CDocument.
.....
public:
CPtrlist lista;
struct Socio
{
char nome;
};
At a function in another document when i use :
.....
Socio* pSocio=(Socio*)lista.GetHeadPosition();
lista is not recognize and the struct Socio neather.
What...
Hint:Analyze the function that you are using and verify in the help if there is any exeption for windows NT.
Remember that NT works in some diferen ways and it´s very normal when does situations happen.
It will be helpful to see the line error where the fault happens.
I believe that it will be only possible using a non window software like turbo c++ or borland c++ 3.1b that program in 16 bits.
The problem is....and what about MFC.....well....we can never score all the time ...if you catch my drift.
Hi,
In my code i have:
...
if(flag==1)
MessageBox(NULL,"Message1","Message2",MB_OK);
else
MessageBox(NULL,"Message3,"Message4,MB_OK);
...
but when i compile i get the error C2660 MessageBOx to not accept 4 arguments.
in other parts of the code i have the same...
Hi, I know this is a easy question but no one knows everythyng.
In my program i add a c++ file where i create a function.
In that function i want to pass two diferents arguments but one at a time in diferents ocasions.
ex.
CProcura dlg;//modal dialog box class
if(flag==1)
int...
Hi, I know this is a easy question but no one knows everythyng.
In my program i add a c++ file where i create a function.
In that function i want to pass two diferents arguments but one at a time in diferents ocasions.
ex.
CProcura dlg;//modal dialog box class
if(flag==1)
int...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.