Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2005

Tip: Looking for answers? Try searching our database.

Linking ODBC recordset with dialog fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Bailey - 26 Feb 2005 17:00 GMT
In VC++6 I used to use the add member variable tab of the class wizard to
bind recordset fields with dialog controls simply by specifying the m_pSet->
variable before the variable name.  This all appears to have changed in VC
.NET.

I have a dialog - IDD_DATABASE_FORM with an edit box IDC_PRODUCTID.  I wish
to bind this control through the view class CDatabaseView to the ODBC
recordset CDBProductSet.  I notice that there is a function defined for
DoDataExchange.  This has various comments about DDX_Field* functions.  Does
a wizard still exist to generate these functions for me or do I now have to
add them manually?  If the wizard no longer exists this surely is a backwrds
step???

TIA

Simon
Antti Keskinen - 27 Feb 2005 13:09 GMT
Hello !

See "Record Field Exchange" in MSDN. Essentially, you bind a database field
into a recordset object's member variable with RFX, then use OO to transfer
the data from the member variable to the dialog class, and DDX to transfer
data from the dialog class into the actual dialog.

-Antti Keskinen

> In VC++6 I used to use the add member variable tab of the class wizard to
> bind recordset fields with dialog controls simply by specifying the
[quoted text clipped - 12 lines]
>
> Simon

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.