Serializing an object
-
Hi fellows Someone tells me that the best way to send an object from a window to another is by serialization. How can I do this? I'm very new in this subject.... Someone have a sugggestion for me? Thanks a lot
-
Hi fellows Someone tells me that the best way to send an object from a window to another is by serialization. How can I do this? I'm very new in this subject.... Someone have a sugggestion for me? Thanks a lot
Alex Cutovoi wrote:
...send an object from a window to another...
What exactly are you wanting to send?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Alex Cutovoi wrote:
...send an object from a window to another...
What exactly are you wanting to send?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
I have 2 windows. In these windows I have a class that I create. This class is exactly the same in both windows. I create the object and I need to send this object from one window to the another window to use it. Actually I'm using unsuccessfully WM_COPYDATA message to send the object. But this is written is MSDN: "The data being passed must not contain pointers or other references to objects not accessible to the application receiving the data." Because this, some data in my object are empty. So, someone suggested me to use serialization, but I'm very very new in this topic...
-
I have 2 windows. In these windows I have a class that I create. This class is exactly the same in both windows. I create the object and I need to send this object from one window to the another window to use it. Actually I'm using unsuccessfully WM_COPYDATA message to send the object. But this is written is MSDN: "The data being passed must not contain pointers or other references to objects not accessible to the application receiving the data." Because this, some data in my object are empty. So, someone suggested me to use serialization, but I'm very very new in this topic...
Alex Cutovoi wrote:
Actually I'm using unsuccessfully WM_COPYDATA message to send the object. But this is written is MSDN: "The data being passed must not contain pointers or other references to objects not accessible to the application receiving the data." Because this, some data in my object are empty.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Alex Cutovoi wrote:
Actually I'm using unsuccessfully WM_COPYDATA message to send the object. But this is written is MSDN: "The data being passed must not contain pointers or other references to objects not accessible to the application receiving the data." Because this, some data in my object are empty.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
Thanks man, it seems to be very useful for me. Thanks