Click here to Skip to main content
15,898,538 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: CImageList Pin
alex.barylski14-Nov-03 16:58
alex.barylski14-Nov-03 16:58 
GeneralRe: CImageList Pin
Michael Dunn14-Nov-03 18:20
sitebuilderMichael Dunn14-Nov-03 18:20 
GeneralRe: CImageList Pin
umeca7414-Nov-03 23:04
umeca7414-Nov-03 23:04 
GeneralEnter key in rich edit control Pin
ted_yu14-Nov-03 7:48
ted_yu14-Nov-03 7:48 
GeneralComposite control Drag & Drop Pin
Member 31248914-Nov-03 0:19
Member 31248914-Nov-03 0:19 
Generalini file Pin
jasu12-Nov-03 22:36
jasu12-Nov-03 22:36 
GeneralWTl in ATL 7 control Pin
Gabriel.P.G12-Nov-03 9:25
Gabriel.P.G12-Nov-03 9:25 
GeneralProblem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 0:48
_Magnus_12-Nov-03 0:48 
I have a class like this that wraps the webbrowser

template <typename T><br />
class IEHost : public IDispEventSimpleImpl<1, IEHost<T>, &__uuidof(DWebBrowserEvents2)><br />
{<br />
...<br />
   BEGIN_SINK_MAP(IEHost)<br />
		SINK_ENTRY_INFO(1, __uuidof(DWebBrowserEvents2), 259, DocumentComplete, &DocumentCompleteInfo)<br />
		SINK_ENTRY_INFO(1, __uuidof(DWebBrowserEvents2), 250, BeforeNavigate2, &BeforeNavigate2Info)<br />
		SINK_ENTRY_INFO(1, __uuidof(DWebBrowserEvents2), 102, StatusTextChange, &StatusTextChangeInfo)<br />
	END_SINK_MAP()<br />
...<br />
}

And an atl dialog class that uses it

class StartDlg : public CAxDialogImpl<StartDlg> ,<br />
   public CStrDlg<StartDlg>,<br />
	public CDialogResize<StartDlg>,<br />
   public IEHost<StartDlg><br />
{<br />
}

This compiled fine with VC6, but with VC7
i get this error.
I tried all i can think of to get it to compile but with no luck.
Anyone knows how to get it to work in VC7

c:\Program Files\Microsoft Visual Studio .NET\Vc7\atlmfc\include\atlcom.h(4016): error C2440: 'initializing' : cannot convert from 'const ATL::_ATL_EVENT_ENTRY<T> *' to 'const ATL::_ATL_EVENT_ENTRY<T> *'<br />
        with<br />
        [<br />
            T=IEHost<StartDlg><br />
        ]<br />
        and<br />
        [<br />
            T=StartDlg<br />
        ]


/Magnus


- I don't necessarily agree with everything I say
GeneralRe: Problem with atl vc7 and sinkmap Pin
geo_m12-Nov-03 3:04
geo_m12-Nov-03 3:04 
GeneralRe: Problem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 3:25
_Magnus_12-Nov-03 3:25 
GeneralRe: Problem with atl vc7 and sinkmap Pin
Michael Dunn12-Nov-03 7:25
sitebuilderMichael Dunn12-Nov-03 7:25 
GeneralRe: Problem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 21:46
_Magnus_12-Nov-03 21:46 
GeneralSetup problem of the Atl project Pin
Fox Ray11-Nov-03 20:42
Fox Ray11-Nov-03 20:42 
GeneralRe: Setup problem of the Atl project Pin
geo_m12-Nov-03 3:11
geo_m12-Nov-03 3:11 
GeneralRe: Setup problem of the Atl project Pin
Fox Ray12-Nov-03 13:21
Fox Ray12-Nov-03 13:21 
GeneralRe: Setup problem of the Atl project Pin
geo_m15-Nov-03 2:18
geo_m15-Nov-03 2:18 
GeneralCasting an interface to an internal class Pin
Giles11-Nov-03 11:07
Giles11-Nov-03 11:07 
GeneralRe: Casting an interface to an internal class Pin
Tim Smith11-Nov-03 11:54
Tim Smith11-Nov-03 11:54 
GeneralRe: Casting an interface to an internal class Pin
Michael Dunn11-Nov-03 13:37
sitebuilderMichael Dunn11-Nov-03 13:37 
GeneralRe: Casting an interface to an internal class Pin
Giles11-Nov-03 20:41
Giles11-Nov-03 20:41 
GeneralRe: Casting an interface to an internal class Pin
Trong14-Nov-03 6:48
Trong14-Nov-03 6:48 
GeneralStacked Dialog Pin
Sakusys11-Nov-03 0:31
Sakusys11-Nov-03 0:31 
GeneralActivex and resources Pin
roberto.mdv11-Nov-03 0:23
roberto.mdv11-Nov-03 0:23 
QuestionCan the operator be overloaded in ATL and how? Pin
sqwang10-Nov-03 13:30
sqwang10-Nov-03 13:30 
QuestionHow to gray checkbox in tree control. Pin
shivonkar9-Nov-03 20:00
shivonkar9-Nov-03 20:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.