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

ATL / WTL / STL

 
GeneralRe: [wtl]CHyperLink bRet = (dwRet > 32); Pin
Tommy2d10-Apr-05 8:03
Tommy2d10-Apr-05 8:03 
GeneralCDateTimePickerCtrl - CDateTimeCtrl Pin
The Professor8-Apr-05 1:30
The Professor8-Apr-05 1:30 
QuestionHow to get Application pointer of Word if i have Container(Word) pointer Pin
ajalilqarshi8-Apr-05 0:28
ajalilqarshi8-Apr-05 0:28 
Generalquick bind1st question Pin
marinme6-Apr-05 23:56
marinme6-Apr-05 23:56 
GeneralRe: quick bind1st question Pin
Mike Dimmick7-Apr-05 2:06
Mike Dimmick7-Apr-05 2:06 
Generalusing bind2nd function on map Pin
fordge6-Apr-05 17:24
fordge6-Apr-05 17:24 
GeneralRe: using bind2nd function on map Pin
Stuart Dootson6-Apr-05 21:16
professionalStuart Dootson6-Apr-05 21:16 
GeneralRe: using bind2nd function on map Pin
fordge7-Apr-05 1:23
fordge7-Apr-05 1:23 
thankx for that one
it worked swell

im just into STLs now and most of the adapter tutorials seem to have bind1st operating only on vectors

so was just tweaking around with maps n function adaptors

i ran into another problem....trying to use the solution above in "transform"

suppose i get my data as a space seperated string list
say a vector of
"one 1"<br />
"two 2"<br />
"tri 3"<br />
"for 4"<br />
"fiv 5"<br />

and have to parse it into a map<string,string>

i tried using the transform function like below

typedef std::map MyMap;
typedef std::vector MyVector;

MyMap::value_type ParsetoMap(string str)
{
//depending on the blank position
	string::size_type index = str.find(' ');
//split into 2 strings
	MyMap::value_type MyMapPair;
	MyMapPair.first = str.substr(0, index);                       //key
	MyMapPair.second = str.substr(index+1, (int)str.length());    //data
	return MyMapPair;
}
void blah2(MyVector & theVec, MyMap const& theMap)
{
	transform(theVec.begin(), theVec.end(), theMap.begin(), ptr_fun(ParsetoMap));
}


but it doesnt work
???
GeneralRe: using bind2nd function on map Pin
Stuart Dootson7-Apr-05 2:37
professionalStuart Dootson7-Apr-05 2:37 
Questionmultiple key containers?? Pin
fordge6-Apr-05 17:17
fordge6-Apr-05 17:17 
AnswerRe: multiple key containers?? Pin
Stuart Dootson6-Apr-05 21:18
professionalStuart Dootson6-Apr-05 21:18 
GeneralCCommandBarCtrl menu appears as a toolbar button Pin
Paper#6-Apr-05 13:16
Paper#6-Apr-05 13:16 
GeneralProblem using ATL Object in other ATL Server Pin
andreasf5-Apr-05 20:22
andreasf5-Apr-05 20:22 
GeneralImmediate repainting of a listctrl Pin
Franz Klein5-Apr-05 0:17
Franz Klein5-Apr-05 0:17 
GeneralRe: Immediate repainting of a listctrl Pin
Michael Dunn5-Apr-05 7:14
sitebuilderMichael Dunn5-Apr-05 7:14 
QuestionCan a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
samfromcn4-Apr-05 16:36
samfromcn4-Apr-05 16:36 
AnswerRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
Michael Dunn4-Apr-05 20:12
sitebuilderMichael Dunn4-Apr-05 20:12 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
samfromcn4-Apr-05 21:39
samfromcn4-Apr-05 21:39 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
Stuart Dootson4-Apr-05 21:52
professionalStuart Dootson4-Apr-05 21:52 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
samfromcn4-Apr-05 22:27
samfromcn4-Apr-05 22:27 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
Stuart Dootson4-Apr-05 23:05
professionalStuart Dootson4-Apr-05 23:05 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
samfromcn4-Apr-05 23:28
samfromcn4-Apr-05 23:28 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
Stuart Dootson4-Apr-05 23:43
professionalStuart Dootson4-Apr-05 23:43 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
samfromcn5-Apr-05 16:14
samfromcn5-Apr-05 16:14 
GeneralRe: Can a ConnectionPoint Object have function like &quot;HRESULT Test([in, out] Byte* pData)&quot; Pin
Stuart Dootson5-Apr-05 22:17
professionalStuart Dootson5-Apr-05 22:17 

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.