CDaoDatabase Class// get ref

  • Thread starter Thread starter Julien
  • Start date Start date
J

Julien

How do I set reference to a Foundation Class Library from
VB.net?

I'd like to get access to the CDaoDatabase Class...
Dose anyone know if I can even do it with VB.net

Small code snip would be cool... Remember VB code not C

Thanks
..
 
Hi Julien

I'm always careful about saying "You can't do that" when it comes to
programming, it seems like there's always some way to do anything, the
question is: Will it be more trouble than it's worth?

That being said, as far as I know, you can't do that. At least not without
writing a bunch of com wrappers for the classes and then importing your
custom typelib. But why bother when you can import the DAO objects directly
without all the MFC overhead?

Thanks,

Russ Gray
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
DAO drivers are the fastest drivers I've seen. They kick
ass to old ADO and are still faster then new drivers.

I could load a 2G table with 2,000,000 records in seconds
with DAO.
Old ADO could only load 100,000.. And would take a very
long time or crash the computer.

The new .net DataSet can load more but they are sluggish.

I know I can add COM ref to DAO but what about
CDaoDatabase is it not the same?

It's really has to do with building an installation
program.
If the CDaoDatabase class is part of .Net then I would not
need to add COM ref to DAO.

Why would Microsoft give me Chart of CObject when I cant
access them?
 
Back
Top