Can't add a string remembering last value in a class

Hi there ,
I have to compare the last value of 2 classes
The 1rst is a notification class and the 2nd is a message class
I have to remember the last value of each of them to compare them ( to not show message if dupplicate text in notification )
I have try to add a new string to memorize the last value in those 2 classes but that doesn't work , I always have nothing in my strings

Here are the points I have add to do it :
- Add declaration memorize strings in both xxxxx.h and yyyyy.h
- Add declaration functions SetMemo and GetMemo in both xxxxx.cpp and yyyyy.cpp
- Add functions source code SetMemo and GetMemo in both xxxxx.cpp and yyyyy.cpp

I have tested step by step :
- The SetMemo works well , it takes the value and save it in memorize string
- The GetMemo works too , take memo string and returns it but the value is empty

I use to develop with C# ... I'm not a C++ expert , maybe I forget something special in C++

I someone could help me to understand what is wrong ...

Thank you

Chris
Hi,

We really need to see your code to be of any help.

Don't forget the code tags - the
<>
button

Good Luck
Maybe you forgot to call them. It's hard to say what you are doing wrong if we don't know what you are doing http://www.eelis.net/iso-c++/testcase.xhtml


By the way, I hope that you did not declared Set/Get Memo as public member functions
Topic archived. No new replies allowed.