Either if your Sorter class was not created using the MFC Wizard, or if your Sorter class is not an MFC class, you will get that message. I used to face this problem myself. So, just add this statement as the first line in the Sort.cpp file:
#include "stdafx.h"
It should work after...
Since you are using MFC, u can use the class wizard to assign a CString variable to the edit box. U can do this only if you have created the edit box in the resource generator. Then the function would look like:
int looking(CString name)
{
UpdateData();
return (name.Compare(name1)); //...
www.codeguru.com has good code snippets, examples, and demos for Visual C++ development. It has many other interesting things also - the site is a must-see.
Andyrau
The keyword inline lets the compiler know that it need not create separate stack space for the function. Instead whenever the compiler finds the function-call, it will replace it with the function body directly thus making the function-call faster (so, for functions whose bodies are maybe a...
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.