easy sample in vc++
mohammad moeini
mohammad.moeini at gmail.com
Sat Jul 1 15:25:06 CDT 2006
thank you
On 7/1/06, Ruslan Zasukhin <sunshine at public.kherson.ua> wrote:
>
> On 7/1/06 1:17 PM, "mohammad moeini" <mohammad.moeini at gmail.com> wrote:
>
> Hi mohammad,
>
> > hi Ruslan
> > i can't preview mydb in my ui.
> > and i can't connect to mydb by "odbc" or "ado" that to preview in my ui.
> > thankyou for helping me.
>
> Right, we have no odbc and ado
>
> But it is so easy show data in GUI....
>
> We do not make any GUI examples, because only in Visual exists many
> different GUIs:
>
> Win API, MFC, ATL, ...
>
> So we make our examples to be console based. So they can work on any
> compiler and on any platform.
>
> In short example is as next:
>
> * you make cursor
>
> curs = db->SqlSelect( query );
>
> * you make loop which record by record read cursor and fill data of record
> in to your GUI
>
> curs->FirstRecord();
> fields = curs->get_FieldCount();
>
>
> do
> {
> for( ulong I = 1; I <= fields; ++I )
> {
> I_Field_Ptr pField = curs->get_Field( i );
>
> String str = pField->get_Value()->get_String();
>
> // I don't know what GUI elements you use,
> // and this is YOUR responsibility to know how to
> // put data into your GUI controls...
> ListBox->addColumn( I, str );
> }
>
> ListBox->AddRow();
>
> }while( curs->NextRecord() )
>
>
> This is pseudo-code -- just to show you idea.
>
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
More information about the Valentina
mailing list