Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTreeCtrl Pin
jeremysay21-Feb-03 4:46
jeremysay21-Feb-03 4:46 
GeneralI need Help in Thumb Scanning and Comparison in VC++ Pin
farrukhsubhani21-Feb-03 3:31
farrukhsubhani21-Feb-03 3:31 
GeneralDeveloping win32 console application using VC7.0 Pin
George221-Feb-03 3:11
George221-Feb-03 3:11 
GeneralRe: Developing win32 console application using VC7.0 Pin
AlexO21-Feb-03 3:36
AlexO21-Feb-03 3:36 
GeneralRe: Developing win32 console application using VC7.0 Pin
George221-Feb-03 17:14
George221-Feb-03 17:14 
GeneralPropertyGrid controls Pin
Alex VK21-Feb-03 2:35
Alex VK21-Feb-03 2:35 
GeneralRe: PropertyGrid controls Pin
Anonymous5-Nov-03 3:09
Anonymous5-Nov-03 3:09 
Generalpassing in an STL set pointer in SEndMessage Pin
ns21-Feb-03 2:26
ns21-Feb-03 2:26 
I need to transmit an STL set to my Cdialog from MDIView. SO I did:

LRESULT CSTrainView::OnUDMKeywordsToView1(UINT setPtr, UINT nDummy)
{

	std::set<CString>& SetSent = *setPtr;

	int u = SetSent.size();

where
	std::set<CString> testSet;

	testSet.insert("a1");
	testSet.insert("a2");
	testSet.insert("a3");

		
	POSITION pos = pDoc->GetFirstViewPosition();
	while (pos!=NULL)
	{
		CView* pView = pDoc->GetNextView(pos);
		ASSERT_VALID(pView);
;
		pView->SendMessage(UDM_KEYWORDSTOVIEW1,(unsigned int)&testSet,0);


The compile error:

TrainView.cpp(1662) : error C2100: illegal indirection
TrainView.cpp(1662) : error C2440: 'type cast' : cannot convert from 'unsigned int' to 'class std::set<class CString,struct std::less<class CString>,class std::allocator<class CString> >'


What do I need to do to get this to work?

Appreciate your help,
ns
GeneralRe: passing in an STL set pointer in SEndMessage Pin
Hans Ruck21-Feb-03 2:33
Hans Ruck21-Feb-03 2:33 
Generalabsolutely terrific!!! Pin
ns21-Feb-03 2:37
ns21-Feb-03 2:37 
GeneralRe: but... Pin
Hans Ruck21-Feb-03 2:56
Hans Ruck21-Feb-03 2:56 
GeneralRe: but... Pin
ns21-Feb-03 3:06
ns21-Feb-03 3:06 
GeneralRe: but... Pin
Hans Ruck21-Feb-03 3:16
Hans Ruck21-Feb-03 3:16 
GeneralRe: but... Pin
ns21-Feb-03 3:23
ns21-Feb-03 3:23 
GeneralRe: passing in an STL set pointer in SEndMessage Pin
AlexO21-Feb-03 2:35
AlexO21-Feb-03 2:35 
GeneralRe: passing in an STL set pointer in SEndMessage Pin
ns21-Feb-03 2:39
ns21-Feb-03 2:39 
GeneralRe: passing in an STL set pointer in SEndMessage Pin
ns21-Feb-03 2:41
ns21-Feb-03 2:41 
GeneralRe: passing in an STL set pointer in SEndMessage Pin
AlexO21-Feb-03 2:55
AlexO21-Feb-03 2:55 
GeneralRe: passing in an STL set pointer in SEndMessage Pin
ns21-Feb-03 3:04
ns21-Feb-03 3:04 
GeneralMemory leak Pin
Willem B21-Feb-03 1:58
Willem B21-Feb-03 1:58 
GeneralRe: Memory leak Pin
Willem B21-Feb-03 2:25
Willem B21-Feb-03 2:25 
GeneralBeginning Socket Programming Pin
lumpyandsuspicious21-Feb-03 1:25
lumpyandsuspicious21-Feb-03 1:25 
GeneralRe: Beginning Socket Programming Pin
valikac21-Feb-03 6:43
valikac21-Feb-03 6:43 
GeneralTool Tip in CFormView Pin
sikrip21-Feb-03 1:23
sikrip21-Feb-03 1:23 
GeneralRe: Tool Tip in CFormView Pin
Roger Allen21-Feb-03 1:43
Roger Allen21-Feb-03 1:43 

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.