Re: Running Query in VB-6 using MultiThreading ?
From: Doug Stoltz (NoSpam_at_MyEmail.com)
Date: 08/09/04
- Next message: Val Mazur: "Re: Multiple-step operstion generated erros - Datagrid as the Source"
- Previous message: Mark J. McGinty: "Re: ADO data control, proper use"
- In reply to: Val Mazur: "Re: Running Query in VB-6 using MultiThreading ?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 9 Aug 2004 17:04:43 -0400
Here's some info on threading...
If you look in a VB6 project's properties window you can see the threading
options. For Appartment Threaded or single threaded you do not get the
"thread per object" or "thread pool" options. However, for the project type
ActiveX EXE you can specify the threading options. I'm sure you can find
explanations on how to use these properly, but it would take some digging.
The best book I've seen is the O'Reily study guide for the VB 6 exams. I can
highly recommend this book.
In practical terms, Val is correct that you don't have the ability to
multi-thread in most types of VB6 projects. However, if you *really* want
to, you can try it. I'd recommend otherwise for your particular problem.
Good luck
"Val Mazur" <group51a@hotmail.com> wrote in message
news:uepB8fXfEHA.3292@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> There is no true support of the multithreading in VB6. Only way to do this
> is to use timer in your application, which will run some code at some
moment
> of time. In this case it would be similar to multithreading. But would be
> pretty difficult to run multiple async queries using ADO. I would suggest
to
> populate grids one-by-one, but to minimize selection of the data to get
good
> performance. If you need to know how to run queries in async mode, then
> check next KB with an example
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;190988
>
> --
> Val Mazur
> Microsoft MVP
>
>
> "Luqman" <pearlsoft@cyber.net.pk> wrote in message
> news:O1siVuRfEHA.4092@TK2MSFTNGP10.phx.gbl...
> > Is there any example or web site where I can find how to run a ADO
> > Recordset
> > Query in VB-6 and fill the MSHFlex Grid Async using Multi Threading ?
> >
> > Best Regards,
> >
> > Luqman
> >
> >
> >
>
>
- Next message: Val Mazur: "Re: Multiple-step operstion generated erros - Datagrid as the Source"
- Previous message: Mark J. McGinty: "Re: ADO data control, proper use"
- In reply to: Val Mazur: "Re: Running Query in VB-6 using MultiThreading ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|