Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / August 2007



Tip: Looking for answers? Try searching our database.

UserControl in VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christian Havel - 31 Jul 2007 16:12 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.