Re: MFC MDI for binary db

From: Dave (noone_at_nowhere.com)
Date: 11/12/04


Date: Fri, 12 Nov 2004 18:35:19 -0000

i think the 'right' method to do this is to have an array of views. it
makes sense that your 'document' is the whole database. then what you are
really doing is creating multiple views of the data. while one use of this
is to create views that are different ways to display the data it can also
be used to display different sections of the same document in copies of the
same type of view. this would be like opening two views of a word document
in the application and scrolling each one to a different part of the
document.

"Chris" <cristian@cae.ca> wrote in message
news:7dd9p057j9mpadv45srallruafhk5pls9s@4ax.com...
> Hi All,
> I created a MFC project as MDI.
> The main data stored in CDocument is a complex structure. This
> structure represent one record of a database (binary database).
> At present I am able to select different records from the db, one by
> one, and to display the content of each record in different views. For
> each selection, my structure, stored in CDoc, is overwrited for the
> selected record.
>
> What I would like to do is: to be able to open and display in views
> the content of 2 or more records (not only one at each time).
> I thought to 2 solutions:
> 1) To use multiple documents (of the same type) in the application ,
> each document to store the content of a separate db record (or
> pointers for CDocument).
> 2) To keep only one Doc in application, but to use an array of
> structures . Each record of the db is represented by the index of the
> array of structures.
> Which solution is the better? I think the first should be the good
> one, but I need some suggestions. Is that the way where I need to use
> GetFirstDocPosition, GetNextDoc, etc? I am not familiar with these
> methods.
> May you could help me to find some demo projects with this feature or
> some documentation.
>
> Thanks for your help.
> Chris



Relevant Pages

  • Re: Focus Ring
    ... This will display the focus field for the record you're looking at (see ... than making a database that works. ... > line that FMP draws to the left of the line, ... > do is put some kind of focus ring around the current selected record. ...
    (comp.databases.filemaker)
  • Re: INFORMIX 4GL MASTER DETAIL
    ... Are you using a DISPLAY ARRAY or an INPUT ARRAY? ... up the data for the database and contact names, ... SCROLL UP or SCROLL DOWN to navigate them. ...
    (comp.databases.informix)
  • Cannot locate dynamically declared array
    ... database and display them on a web application, ... field names from the database alright. ... the field names as elements of an array, ... Does that mean eval cannot be used to dynamically declare an array? ...
    (comp.lang.perl.misc)
  • Re: Cannot locate dynamically declared array
    ... database and display them on a web application, and when a user selects one table, display all its fields and the corresponding values on the web. ... I'm doing it in Perl. ... I can get the table names and field names from the database alright. ... I thought the eval will actually declare @USER array. ...
    (comp.lang.perl.misc)
  • display array data in a smarty tpl file
    ... i am having an issue with displaying the array that gets inserted into the data base some background on what i have. ... I start off with a regular form and pass the info as an array over to the php and insert it into the database as a string with the following ... this will actually display array array and if i do not use the unserialize function i get the ...
    (alt.php)

Loading