#import mascc.olb help!

J

Josh Orfanakis

I am trying to use the import statement to generate the header files for
Access. I have had only marginal success. I would like to avoid using
MFC, I was able to use the Class Wizard to generate headers from a type
lib but that will only be acceptable if all else fails. I really need to
get this to work from a win32 console app w/o MFC.

Looking at the OLB file in oleview.exe it appears I need msado25.tlb
mso.dll vbe6ext.olb and dao360.dll.

#import "C:\Program Files\Common Files\System\ADO\msado25.tlb"
#import "C:\Program Files\Common Files\MicrosoftShared\Office10\MSO.DLL"
#import "C:\Program Files\Common Files\Microsoft
Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll"
\       rename("EOF","EndOfFile") rename("BOF","BegOfFile")
#import "C:\Program Files\Microsoft Office\office10\msacc.olb"

This yields boatloads of redefinition errors.

Has anybody out there gotten this to work?

If I put in to import raw interfaces only it generates a header but on
link I get errors about duplicate COMDAT _IID_Properties

No idea what means.


TIA
JO
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top