Click here to Skip to main content
15,353,470 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCString assignment crashes on Windows 7 Pin
pandit843-Dec-12 3:57
Memberpandit843-Dec-12 3:57 
SuggestionRe: CString assignment crashes on Windows 7 Pin
David Crow3-Dec-12 4:08
MemberDavid Crow3-Dec-12 4:08 
AnswerRe: CString assignment crashes on Windows 7 Pin
CPallini3-Dec-12 4:15
mveCPallini3-Dec-12 4:15 
AnswerRe: CString assignment crashes on Windows 7 Pin
Richard MacCutchan3-Dec-12 5:02
mveRichard MacCutchan3-Dec-12 5:02 
GeneralRe: CString assignment crashes on Windows 7 Pin
pandit843-Dec-12 5:41
Memberpandit843-Dec-12 5:41 
GeneralRe: CString assignment crashes on Windows 7 Pin
Richard MacCutchan3-Dec-12 6:22
mveRichard MacCutchan3-Dec-12 6:22 
AnswerRe: CString assignment crashes on Windows 7 Pin
Stephen Hewitt4-Dec-12 6:34
MemberStephen Hewitt4-Dec-12 6:34 
GeneralRe: CString assignment crashes on Windows 7 Pin
pandit844-Dec-12 19:44
Memberpandit844-Dec-12 19:44 
I am sorry for adding incomplete info.
I have allocated memory to object of structure myStruct in one dll and passed this struct object as a reference to another dll. This crash happens only while assinging value to
C++
structRef.cstrFilePath 
variable. Finally I was able to assign value inside CString variable using
C++
wsccpy
method. I was able to resolve this crash with following code , but I am sure this is not the correct way to do it.
C++
wcscpy (structRef.cstrFilePath.GetBuffer (), str.GetBuffer ()) ; 

I am still trying to resolve this issue in a correct way. I am using Windows 7 system and GCC Compiler. Thanks all for replying to my previous post.
GeneralRe: CString assignment crashes on Windows 7 Pin
Stephen Hewitt5-Dec-12 3:49
MemberStephen Hewitt5-Dec-12 3:49 
AnswerRe: CString assignment crashes on Windows 7 Pin
pandit8418-Dec-12 7:48
Memberpandit8418-Dec-12 7:48 
GeneralRe: CString assignment crashes on Windows 7 Pin
Stephen Hewitt18-Dec-12 17:44
MemberStephen Hewitt18-Dec-12 17:44 
QuestionSegmentation Fault in GTK library files Pin
SrivathsanRaghavan2-Dec-12 19:20
MemberSrivathsanRaghavan2-Dec-12 19:20 
AnswerRe: Segmentation Fault in GTK library files Pin
Richard MacCutchan2-Dec-12 21:47
mveRichard MacCutchan2-Dec-12 21:47 
GeneralRe: Segmentation Fault in GTK library files Pin
SrivathsanRaghavan2-Dec-12 22:11
MemberSrivathsanRaghavan2-Dec-12 22:11 
GeneralRe: Segmentation Fault in GTK library files Pin
Richard MacCutchan2-Dec-12 22:28
mveRichard MacCutchan2-Dec-12 22:28 
GeneralRe: Segmentation Fault in GTK library files Pin
SrivathsanRaghavan3-Dec-12 0:25
MemberSrivathsanRaghavan3-Dec-12 0:25 
GeneralRe: Segmentation Fault in GTK library files Pin
Richard MacCutchan3-Dec-12 0:55
mveRichard MacCutchan3-Dec-12 0:55 
Questioncan i use mem_fun like this? Pin
Falconapollo1-Dec-12 17:37
MemberFalconapollo1-Dec-12 17:37 
AnswerRe: can i use mem_fun like this? Pin
Richard MacCutchan1-Dec-12 20:56
mveRichard MacCutchan1-Dec-12 20:56 
AnswerRe: can i use mem_fun like this? Pin
Stephen Hewitt2-Dec-12 4:45
MemberStephen Hewitt2-Dec-12 4:45 
AnswerRe: can i use mem_fun like this? Pin
troyxyz2-Dec-12 6:21
Membertroyxyz2-Dec-12 6:21 
AnswerRe: can i use mem_fun like this? Pin
Stefan_Lang3-Dec-12 2:14
mveStefan_Lang3-Dec-12 2:14 
AnswerRe: can i use mem_fun like this? Pin
Stefan_Lang3-Dec-12 3:45
mveStefan_Lang3-Dec-12 3:45 
GeneralRe: can i use mem_fun like this? Pin
Falconapollo4-Dec-12 14:43
MemberFalconapollo4-Dec-12 14:43 
Questionclient server for running the program Pin
danielsutopo1-Dec-12 15:09
Memberdanielsutopo1-Dec-12 15:09 

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.