Click here to Skip to main content
15,905,414 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralDIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven22-Feb-05 6:35
tkarven22-Feb-05 6:35 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
ThatsAlok22-Feb-05 23:35
ThatsAlok22-Feb-05 23:35 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven23-Feb-05 7:45
tkarven23-Feb-05 7:45 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
ThatsAlok23-Feb-05 19:00
ThatsAlok23-Feb-05 19:00 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven23-Feb-05 20:27
tkarven23-Feb-05 20:27 
GeneralPostPaint in WTL::CEdit Pin
blueluna22-Feb-05 4:10
blueluna22-Feb-05 4:10 
GeneralRe: PostPaint in WTL::CEdit Pin
Michael Dunn22-Feb-05 7:42
sitebuilderMichael Dunn22-Feb-05 7:42 
Questionfor_each calls copy ctor on functor? Pin
Malcolm Smart21-Feb-05 22:56
Malcolm Smart21-Feb-05 22:56 
This is simplified version of what I am doing but still shows the issue : The Copy Ctor is being called by the for_each algorithm. Whilst in this case it isn't an issue, but in my live app it is. Why is the copy ctor being called and can I prevent it..?

class ProcessVector
{
public:
	ProcessVector(const ProcessVector &rhs)
	{
		cout << "copy ctor" << endl;
	}
	ProcessVector()
	{
		cout << "ctor" << endl;
	}
	~ProcessVector()
	{
		cout << "dtor" << endl;
	}
	void operator ()(int i)
	{
		cout << i << endl;
	}

};


int main(int argc, char* argv[])
{
	std::vector <int> test;
	for (int i = 0 ; i< 5; i++)
		test.push_back(i);
	
	for_each(test.begin(), test.end() , ProcessVector() );

	return 0;
}
gives the following output
ctor
0
1
2
3
4
copy ctor
dtor
dtor
Regards

Angel



*********************************************
The sooner you fall behind, the longer you have to catch up.
AnswerRe: for_each calls copy ctor on functor? Pin
Stuart Dootson22-Feb-05 4:00
professionalStuart Dootson22-Feb-05 4:00 
AnswerRe: for_each calls copy ctor on functor? Pin
Andrew Walker23-Feb-05 10:21
Andrew Walker23-Feb-05 10:21 
GeneralATL Controls Pin
muslcesonvacation21-Feb-05 16:48
muslcesonvacation21-Feb-05 16:48 
GeneralEvent is not catched in script Pin
grinder20-Feb-05 22:55
grinder20-Feb-05 22:55 
GeneralRe: Event is not catched in script Pin
Gevorg22-Feb-05 10:14
Gevorg22-Feb-05 10:14 
GeneralRe: Event is not catched in script Pin
grinder23-Feb-05 1:03
grinder23-Feb-05 1:03 
GeneralPlug-in in IE Pin
Pauwl20-Feb-05 21:46
Pauwl20-Feb-05 21:46 
GeneralATL ActiveX Control Pin
muslcesonvacation20-Feb-05 7:34
muslcesonvacation20-Feb-05 7:34 
GeneralRe: ATL ActiveX Control Pin
Michael Dunn20-Feb-05 11:03
sitebuilderMichael Dunn20-Feb-05 11:03 
GeneralRe: ATL ActiveX Control Pin
muslcesonvacation20-Feb-05 12:51
muslcesonvacation20-Feb-05 12:51 
GeneralRe: ATL ActiveX Control Pin
Igor Vigdorchik20-Feb-05 15:14
Igor Vigdorchik20-Feb-05 15:14 
GeneralRe: ATL ActiveX Control Pin
Anonymous21-Feb-05 3:45
Anonymous21-Feb-05 3:45 
GeneralRe: ATL ActiveX Control Pin
muslcesonvacation21-Feb-05 14:01
muslcesonvacation21-Feb-05 14:01 
GeneralWinlogon/Notify packet problem. Pin
dabayi18-Feb-05 2:53
dabayi18-Feb-05 2:53 
GeneralRe: Winlogon/Notify packet problem. Pin
ThatsAlok18-Feb-05 20:47
ThatsAlok18-Feb-05 20:47 
GeneralRe: Winlogon/Notify packet problem. Pin
Jörgen Sigvardsson19-Feb-05 6:31
Jörgen Sigvardsson19-Feb-05 6:31 
GeneralATL App consuming .NET Pin
Chiew Heng Wah17-Feb-05 19:25
Chiew Heng Wah17-Feb-05 19:25 

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.