lapucca
asked on
How do I add CB_SETITEMDATA to a comboBox with wstring variable as the LPARAM?
Also, is it correct and OK to put the declaration of the wstring in side of this loop? Currently, with this code I'm getting the following error message from the compiler.
Error 1 error C2440: 'initializing' : cannot convert from 'std::wstring *' to 'std::basic_string<_Elem,_ Traits,_Ax >' c:\Projects\UnityExtProper ty\CUserPa ge.Cpp 884
//while (loop condition is true)
// Add the context cn attribute
std::wstring wsGroup = new wstring;
wsGroup = (colSearchColumnDN.pADsVal ues->CaseI gnoreStrin g);
SendMessage(hwndPrimGroup, CB_SETITEM DATA, index, (LPARAM)T2CW(wsGroup.c_str ()));
primaryGroups.push_back(ws Group);
padsSearchContainer->FreeC olumn( &colSearchColumnDN );
//end while loop
Error 1 error C2440: 'initializing' : cannot convert from 'std::wstring *' to 'std::basic_string<_Elem,_
//while (loop condition is true)
// Add the context cn attribute
std::wstring wsGroup = new wstring;
wsGroup = (colSearchColumnDN.pADsVal
SendMessage(hwndPrimGroup,
primaryGroups.push_back(ws
padsSearchContainer->FreeC
//end while loop
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This questions needs to be cross-referenced with your other question at http:/Q_21833678.html
I recommend that you close one of these questions, lapucca, and invite the experts from it to the other question.
We need to see what code you currently have that's causing you grief in the vector. It is hard to see what the state of play is. Please can you show us you current code with current error messages.
I recommend that you close one of these questions, lapucca, and invite the experts from it to the other question.
We need to see what code you currently have that's causing you grief in the vector. It is hard to see what the state of play is. Please can you show us you current code with current error messages.
ASKER