Hi,
I want to develop a VB6 UserControl. The control should be used from a VC++
MFC app. The control should show the values from a lot of fields (about 20).
I do not want to add a set-property for each field. My idea is to create a
dataTransferObject which contains all the fields.
How do I have to realize this in VB6?
Thanks
Christian
Ralph - 31 Jul 2007 16:46 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> Thanks
> Christian
I think I know what you are trying to accomplish, but you probably have to
provide more information. A DTO doesn't have anything to do with a Property
object or the UC's own data. A DTO merely describes a method where
information is transfered between programs, processes, business objects,
etc. Within some contexts a Property object might even serve as a DTO.
My guess is you want to try and remove "layers" between the data coming
in/out and the UC own data store. My advice, based on the limited
information provided, is to first make your UC work. Then plan out your DTO.
Then go from there.
-ralph
Elmue - 08 Aug 2007 21:37 GMT
Christian Havel schrieb:
> Hi,
>
[quoted text clipped - 7 lines]
> Thanks
> Christian
As you are lazy in describing what exactly you want it is difficult to
help you.
Noemally COM does the datatransfer.
May be this helps you:
Calling a VB ActiveX DLL from a MFC Client
http://www.codeproject.com/dll/vbactivexwithvc.asp
and
Handling VB ActiveX Events in Visual C++ client
http://www.codeproject.com/com/vbeventswithvc.asp
Elmue