I'm currently developing a program for IP based intercom systems. I am using MFC to make an activeX wrapper for the .dll which has already been made. I keep getting these errors, and they have been my only problem thus far. The following code produces error C2664 cannot convert parameter 1 from "LPCTSTR" to "int". However, if I remove LPCTSTR, it gives me the same error, just in reverse.
This is code to add columns to the ActiveX control.
My other error states that everything left of "->m_pMainWnd;" needs class/struct/union or that it hasn't been defined. My problem is that it is defined using extern (theApp is what is left of m_pMainWnd) and I have included the proper .h files in my source files.
My definitions are shown here:
!defined( __AFXCTL_H__ )#error
"include 'afxctl.h' before including this file"#endif#include
class CActiveXApp : public COleControlModule
extern const GUID CDECL _tlid;
extern const WORD _wVerMajor;
extern const WORD _wVerMinor;
[b]extern CActiveXApp *theApp;[/b][/code]
This is in my main activex.h file. Any help would be greatly appreciated. Thanks guys.