Click here to Skip to main content
15,887,683 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: SplitterWindow change message? Pin
Stuart Dootson22-Jan-10 2:51
professionalStuart Dootson22-Jan-10 2:51 
QuestionI need an ebay program Pin
totolcm13-Jan-10 2:19
totolcm13-Jan-10 2:19 
QuestionQuery to copy the table with Data and Constraints in SQL Server Pin
siddisagar6-Jan-10 0:56
siddisagar6-Jan-10 0:56 
AnswerRe: Query to copy the table with Data and Constraints in SQL Server Pin
LunaticFringe6-Jan-10 1:05
LunaticFringe6-Jan-10 1:05 
GeneralRe: Query to copy the table with Data and Constraints in SQL Server Pin
siddisagar6-Jan-10 1:12
siddisagar6-Jan-10 1:12 
GeneralRe: Query to copy the table with Data and Constraints in SQL Server Pin
LunaticFringe6-Jan-10 2:27
LunaticFringe6-Jan-10 2:27 
QuestionATL ActiveX control embedded in Internet Explorer not receiving WM_CREATE, WM_DESTROY, WM_SHOWWINDOW messages Pin
Member 455120828-Dec-09 23:55
Member 455120828-Dec-09 23:55 
QuestionProblem in transform function Pin
ashtwin16-Dec-09 1:50
ashtwin16-Dec-09 1:50 
Hi, i am using transform function to transform a vector to a map but getting the following error.

multiMapType.obj : error LNK2001: unresolved external symbol "struct std::pair<enum PC::PC_type,class PC> __cdecl std::make_pair(enum PC::PC_type const &,class PC const &)" (?make_pair@std@@YA?AU?$pair@W4PC_type@PC@@V2@@1@ABW4PC_type@PC@@ABV4@@Z)
Debug/MultiMapType.exe : fatal error LNK1120: 1 unresolved externals

The code snippet is as follows

int main( )
{
	const PC::PC_type kind[] = { PC::IBM,PC::IBM, PC::Dell, PC::HP,PC::HP, PC::HP };
	
	const int num_appliances = 3;
	
	vector<PC> v;
	for( int i = 0; i < num_appliances; ++i )
		v.push_back( PC( kind[i], i, i ) );
	
	
	// work with a multimap. key is appliance type, value is PC
	typedef multimap<PC::PC_type,PC> PC_multimap_type;
	
	PC_multimap_type stock;
	const PC desired( PC::HP );
	
	// load the appliances into the multimap
	transform( kind, kind+num_appliances, v.begin(),inserter( stock, stock.end() ),make_pair<PC::PC_type,PC> );	
        PC_multimap_type::const_iterator stock_end = stock.end();
	
	// search for first occurrence of key
	PC_multimap_type::const_iterator spot = stock.find( desired.appliance() );
	
	if( spot != stock_end )
		spot->second.print();
	else
		cout << "Don't have a " << desired.name() << " in stock\n";
	return 0;
}


Please help.

Thanks
AnswerRe: Problem in transform function Pin
Stuart Dootson16-Dec-09 6:45
professionalStuart Dootson16-Dec-09 6:45 
GeneralRe: Problem in transform function Pin
ashtwin16-Dec-09 17:34
ashtwin16-Dec-09 17:34 
GeneralRe: Problem in transform function Pin
Stuart Dootson16-Dec-09 21:30
professionalStuart Dootson16-Dec-09 21:30 
GeneralRe: Problem in transform function Pin
ashtwin17-Dec-09 0:25
ashtwin17-Dec-09 0:25 
GeneralRe: Problem in transform function Pin
Stuart Dootson17-Dec-09 0:26
professionalStuart Dootson17-Dec-09 0:26 
GeneralRe: Problem in transform function Pin
ashtwin17-Dec-09 21:33
ashtwin17-Dec-09 21:33 
GeneralRe: Problem in transform function Pin
Stuart Dootson17-Dec-09 21:36
professionalStuart Dootson17-Dec-09 21:36 
GeneralRe: Problem in transform function Pin
ashtwin18-Dec-09 1:53
ashtwin18-Dec-09 1:53 
GeneralRe: Problem in transform function Pin
Stuart Dootson18-Dec-09 1:57
professionalStuart Dootson18-Dec-09 1:57 
GeneralRe: Problem in transform function Pin
ashtwin18-Dec-09 2:31
ashtwin18-Dec-09 2:31 
GeneralRe: Problem in transform function Pin
ashtwin17-Dec-09 0:29
ashtwin17-Dec-09 0:29 
QuestionATL interfaces/COM problem in Vista Pin
T800G13-Dec-09 2:53
T800G13-Dec-09 2:53 
QuestionA quick connection point question... Pin
asdfhjkasdf dfhjksdf12-Dec-09 19:44
asdfhjkasdf dfhjksdf12-Dec-09 19:44 
AnswerRe: A quick connection point question... Pin
Jonathan Davies13-Dec-09 3:48
Jonathan Davies13-Dec-09 3:48 
QuestionCOM/ATL interfaces Pin
asdfhjkasdf dfhjksdf8-Dec-09 16:39
asdfhjkasdf dfhjksdf8-Dec-09 16:39 
AnswerRe: COM/ATL interfaces Pin
Jonathan Davies9-Dec-09 6:04
Jonathan Davies9-Dec-09 6:04 
GeneralRe: COM/ATL interfaces Pin
asdfhjkasdf dfhjksdf9-Dec-09 8:09
asdfhjkasdf dfhjksdf9-Dec-09 8:09 

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.