MindCracker
Programmer
I want to build an installer in my application using Visual C++. For example, when the procedure below is called, DataManager will be informed that this class has been installed.
INSTALLPROCEED(new Welcome(), new CDialogClass())
//where: Welcome is the class defined in Welcome.h
//where: CDialogClass is the class defined in the Dialog file name: dialogclass.h
The definition of the INSTALLPROCEED is as follows:-
#define INSTALLPROCEED(nameclass, namedialog) DataManager::Install(nameclass, namedialog);
However, when I compile:
none of the 2 overloads can convert parameter 1 from type 'class WelcomeClass*'
It's a bit confusing in my description. I am not very familiar with the terms used in Visual C++ as my knowledge in C++ is very limited. Any expert who can understand what I am trying to say, please help me. I would deeply appreciate that.
INSTALLPROCEED(new Welcome(), new CDialogClass())
//where: Welcome is the class defined in Welcome.h
//where: CDialogClass is the class defined in the Dialog file name: dialogclass.h
The definition of the INSTALLPROCEED is as follows:-
#define INSTALLPROCEED(nameclass, namedialog) DataManager::Install(nameclass, namedialog);
However, when I compile:
none of the 2 overloads can convert parameter 1 from type 'class WelcomeClass*'
It's a bit confusing in my description. I am not very familiar with the terms used in Visual C++ as my knowledge in C++ is very limited. Any expert who can understand what I am trying to say, please help me. I would deeply appreciate that.