Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPrivate member. Pin
shiraztk25-May-07 5:20
shiraztk25-May-07 5:20 
AnswerRe: Private member. Pin
Mark Salsbery25-May-07 5:25
Mark Salsbery25-May-07 5:25 
GeneralRe: Private member. Pin
shiraztk25-May-07 5:34
shiraztk25-May-07 5:34 
GeneralRe: Private member. Pin
Mark Salsbery25-May-07 5:42
Mark Salsbery25-May-07 5:42 
AnswerRe: Private member. Pin
CPallini25-May-07 5:33
mveCPallini25-May-07 5:33 
AnswerRe: Private member. Pin
Manoj Kumar Rai25-May-07 5:46
professionalManoj Kumar Rai25-May-07 5:46 
AnswerRe: Private member. Pin
Expert Coming25-May-07 8:31
Expert Coming25-May-07 8:31 
GeneralRe: Private member. Pin
David Crow25-May-07 10:04
David Crow25-May-07 10:04 
AnswerRe: Private member. Pin
John R. Shaw25-May-07 14:51
John R. Shaw25-May-07 14:51 
QuestionMangling of CString in fstream Pin
ldsdbomber25-May-07 4:18
ldsdbomber25-May-07 4:18 
AnswerRe: Mangling of CString in fstream Pin
David Crow25-May-07 4:43
David Crow25-May-07 4:43 
GeneralRe: Mangling of CString in fstream Pin
Stephen Hewitt27-May-07 15:15
Stephen Hewitt27-May-07 15:15 
QuestionRe: Mangling of CString in fstream Pin
David Crow27-May-07 16:49
David Crow27-May-07 16:49 
AnswerRe: Mangling of CString in fstream Pin
Stephen Hewitt27-May-07 16:54
Stephen Hewitt27-May-07 16:54 
GeneralRe: Mangling of CString in fstream Pin
David Crow27-May-07 16:56
David Crow27-May-07 16:56 
AnswerRe: Mangling of CString in fstream Pin
Stephen Hewitt27-May-07 15:13
Stephen Hewitt27-May-07 15:13 
Questionoperator overloading Pin
Kiran Pinjala25-May-07 3:42
Kiran Pinjala25-May-07 3:42 
AnswerRe: operator overloading Pin
David Crow25-May-07 3:45
David Crow25-May-07 3:45 
GeneralRe: operator overloading Pin
Kiran Pinjala25-May-07 3:47
Kiran Pinjala25-May-07 3:47 
GeneralRe: operator overloading Pin
David Crow25-May-07 3:51
David Crow25-May-07 3:51 
GeneralRe: operator overloading Pin
Kiran Pinjala25-May-07 4:19
Kiran Pinjala25-May-07 4:19 
GeneralRe: operator overloading Pin
Mark Salsbery25-May-07 5:30
Mark Salsbery25-May-07 5:30 
QuestionSTL string calling delete and crashing... [modified] Pin
sandeepkavade25-May-07 1:27
sandeepkavade25-May-07 1:27 
Hi,

I have written a function in a DLL as follows
std::string Myclass::MyFunc()
{
std::string ret;
ret = "HHHHHHHHHHHHHHH"
return ret;
}
I am exporting this class and importing in client app.
What I am observing is that when I call this function from C++ client, if the number of charcters assigned to ret are less than 16 the program is working fine. But if the nuber of characters assigned to ret are 16 or greater, in client program it is giving exception while assigning the returned string to local string.
It is working in Debug mode but crashing in release mode.

Thanks in advance...


-- modified at 7:56 Friday 25th May, 2007
AnswerRe: STL string calling delete and crashing... Pin
Cedric Moonen25-May-07 2:02
Cedric Moonen25-May-07 2:02 
GeneralRe: STL string calling delete and crashing... Pin
sandeepkavade25-May-07 2:24
sandeepkavade25-May-07 2:24 

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.