Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting a Crash while browsing for a folder. Pin
V K 24-May-09 23:19
V K 24-May-09 23:19 
GeneralRe: Getting a Crash while browsing for a folder. Pin
Iain Clarke, Warrior Programmer4-May-09 23:47
Iain Clarke, Warrior Programmer4-May-09 23:47 
GeneralRe: Getting a Crash while browsing for a folder. Pin
David Crow5-May-09 2:52
David Crow5-May-09 2:52 
AnswerRe: Getting a Crash while browsing for a folder. Pin
Le@rner4-May-09 23:21
Le@rner4-May-09 23:21 
AnswerRe: Getting a Crash while browsing for a folder. Pin
CPallini4-May-09 23:33
mveCPallini4-May-09 23:33 
QuestionError: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' [modified] Pin
mmayur4-May-09 22:38
mmayur4-May-09 22:38 
AnswerRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
CPallini4-May-09 22:47
mveCPallini4-May-09 22:47 
AnswerRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Cedric Moonen4-May-09 23:04
Cedric Moonen4-May-09 23:04 
Wow, your code seems to be wrong on so many points OMG | :OMG:

First thing, why are you trying to assign a pointer to a map into a LPCTSTR pointer (I guess that pBuf is LPCTSTR by lookking at your error). That doesn't make any sense to me.
Second, you can't put a full map this way in the shared memory. You will need to serialize in some way your array: write the number of elements and then write all the elements one by one in the shared memory. You will need to apply the same principle when you deserialize: read the number of elements, then the elements one by one and add them to a local map object.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson4-May-09 23:10
professionalStuart Dootson4-May-09 23:10 
AnswerRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson4-May-09 23:09
professionalStuart Dootson4-May-09 23:09 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur6-May-09 0:46
mmayur6-May-09 0:46 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur6-May-09 0:46
mmayur6-May-09 0:46 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson6-May-09 0:52
professionalStuart Dootson6-May-09 0:52 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur6-May-09 1:13
mmayur6-May-09 1:13 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson6-May-09 1:30
professionalStuart Dootson6-May-09 1:30 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur8-May-09 0:15
mmayur8-May-09 0:15 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson8-May-09 2:06
professionalStuart Dootson8-May-09 2:06 
QuestionDefault buttons changing for PropertySheet/PropertyPage Pin
aalexfree4-May-09 22:37
aalexfree4-May-09 22:37 
QuestionCasting Pin
CodingLover4-May-09 22:20
CodingLover4-May-09 22:20 
AnswerRe: Casting Pin
Rajesh R Subramanian4-May-09 22:33
professionalRajesh R Subramanian4-May-09 22:33 
AnswerRe: Casting Pin
CPallini4-May-09 22:37
mveCPallini4-May-09 22:37 
AnswerRe: Casting Pin
Iain Clarke, Warrior Programmer4-May-09 23:06
Iain Clarke, Warrior Programmer4-May-09 23:06 
NewsRe: Casting Pin
CodingLover4-May-09 23:09
CodingLover4-May-09 23:09 
GeneralRe: Casting Pin
Iain Clarke, Warrior Programmer4-May-09 23:20
Iain Clarke, Warrior Programmer4-May-09 23:20 
GeneralRe: Casting Pin
Cedric Moonen4-May-09 23:14
Cedric Moonen4-May-09 23:14 

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.