Click here to Skip to main content
15,889,595 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMake C dll as a COM DLL Pin
sourabhmehta2-Mar-15 22:30
sourabhmehta2-Mar-15 22:30 
AnswerRe: Make C dll as a COM DLL Pin
Richard MacCutchan2-Mar-15 22:49
mveRichard MacCutchan2-Mar-15 22:49 
QuestionHow to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380211-Mar-15 18:46
Member 114380211-Mar-15 18:46 
AnswerRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan1-Mar-15 22:55
mveRichard MacCutchan1-Mar-15 22:55 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380212-Mar-15 16:47
Member 114380212-Mar-15 16:47 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan2-Mar-15 21:13
mveRichard MacCutchan2-Mar-15 21:13 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380212-Mar-15 23:59
Member 114380212-Mar-15 23:59 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan3-Mar-15 0:17
mveRichard MacCutchan3-Mar-15 0:17 
Then you need to manage the lifetime of the string. If you pass it from one thread to another then you must ensure it is not deleted from its source until the destination has taken a secure copy. In your sample code your destination thread is taking a copy, but only into a temporary location which immeditely gets disposed. Assuming that m_svalue is a string pointer then you just need to allocate a buffer of the required size to it, and copy the message string across. You can then delete it at some later point.
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380219-Mar-15 17:48
Member 114380219-Mar-15 17:48 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan9-Mar-15 22:13
mveRichard MacCutchan9-Mar-15 22:13 
AnswerRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Freak302-Mar-15 1:35
Freak302-Mar-15 1:35 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380212-Mar-15 22:22
Member 114380212-Mar-15 22:22 
AnswerRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
jeron12-Mar-15 6:06
jeron12-Mar-15 6:06 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380212-Mar-15 16:46
Member 114380212-Mar-15 16:46 
QuestionRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
jeron13-Mar-15 4:00
jeron13-Mar-15 4:00 
QuestionHow to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
pcname1-Mar-15 12:35
pcname1-Mar-15 12:35 
AnswerRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
Richard Andrew x641-Mar-15 13:07
professionalRichard Andrew x641-Mar-15 13:07 
GeneralRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
pcname1-Mar-15 14:13
pcname1-Mar-15 14:13 
AnswerRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
Richard Andrew x641-Mar-15 14:20
professionalRichard Andrew x641-Mar-15 14:20 
GeneralRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
pcname1-Mar-15 14:56
pcname1-Mar-15 14:56 
AnswerRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
Richard MacCutchan1-Mar-15 22:54
mveRichard MacCutchan1-Mar-15 22:54 
GeneralRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
pcname2-Mar-15 15:07
pcname2-Mar-15 15:07 
GeneralRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
Richard MacCutchan2-Mar-15 21:05
mveRichard MacCutchan2-Mar-15 21:05 
AnswerRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
Stephen Hewitt2-Mar-15 14:33
Stephen Hewitt2-Mar-15 14:33 
GeneralRe: How to correctly pass a LPCSTR type parameter to a thread in DLL? Pin
pcname2-Mar-15 15:11
pcname2-Mar-15 15:11 

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.