UserControl properties persistency
-
Hello, I'm porting an ActiveX control into a .net UserControl using MC++. In order to support persistency with MFC based ActiveX controls there was the DoPropExchange function: is there some similar function in MC++ UserControls? I noticed that the persistency of UserControls properties seems to be embedded inside the .NET framework: if I declare a property of class Bitmap, its contents will be automatically saved inside the .resx file: if I should store a binary based property (for example the contents of a WAV file), what should I do? Any example? Regards Severino
-
Hello, I'm porting an ActiveX control into a .net UserControl using MC++. In order to support persistency with MFC based ActiveX controls there was the DoPropExchange function: is there some similar function in MC++ UserControls? I noticed that the persistency of UserControls properties seems to be embedded inside the .NET framework: if I declare a property of class Bitmap, its contents will be automatically saved inside the .resx file: if I should store a binary based property (for example the contents of a WAV file), what should I do? Any example? Regards Severino
Check out the following example; it's in VB but the concepts are identical for C++: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughpersistingobject.asp This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
-
Check out the following example; it's in VB but the concepts are identical for C++: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughpersistingobject.asp This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
-
Hello: This article tells how to persist data to a file but is there another way to persist the data using the .NET environment itself like what the MFC DoPropExchange function do (internally and not to a dedicated created file) ???