Page 1 of 1

MM Bundles & VB2008

Posted: Sun May 01, 2011 8:05 pm
by JohnCrow
Hi
Ive been looking at the visual basic code with the files in the bundle downloads, (USB application).
This is a clean install of VB2008 express.
Im getting the following errors when I try to compile

Warning 1 Cannot load type library for reference "DAO". Library not registered.
(Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) Exercise6

Warning 2 The referenced component 'DAO' could not be found.

Error 3 Type 'DAO.DBEngine' is not defined.
I:\Example3 - VB2008 Source Code\UpgradeSupport.vb 2 36 Exercise6
Did try the PC comms source code with similar effects,
I also saw an error referring to ECIO, which again i think is a comms error, rather than referring to the Matrix ECIO module

I am assuming I have to configure the data access components in VB in a similar way mentioned to the PIC - PC comms article posted by spanish_dude, however i have been through the setting and am not able to see anything.
Any pointers would be appriciated.

Im running Windows 7 SP1 (64Bit)
Thanks

Re: MM Bundles & VB2008

Posted: Tue May 03, 2011 10:39 am
by Benj
Hello,

I think this is a VB6 leftover. There is a VB2008 example available from here that should help to get you started.

http://www.matrixmultimedia.com/Learnin ... /EB896.zip

Inside the archive - Programs/Example3 - VB2008 Source Code/

Let me know how you get on.

Re: MM Bundles & VB2008

Posted: Tue May 03, 2011 6:54 pm
by JohnCrow
Hi Ben
Thanks for the replay.
No it still behaves the same, the file you linked to looks is the same as what Ive been trying from the bundles downloads.
The program does compile and produce the test file, but I still get errors.
Capture.JPG
Capture.JPG (66.7 KiB) Viewed 7156 times
Ive attached a screen shot of the error
Im assuming it has to be something in my configuration of VB2008/Windows
I dont have to manually register on the the dll files its looking for or similar ?

Re: MM Bundles & VB2008

Posted: Wed May 04, 2011 10:00 am
by Benj
Hello,

The problem seems to be caused by upgrading a project from VB6 to VB2008. Most if not all of our VB examples are then based on this upgraded code.

The file you are looking for is called UpgradeSupport.vb. Simply delete the contents of the file or remove the file from your project and the error messages should disappear.

Re: MM Bundles & VB2008

Posted: Wed May 04, 2011 9:09 pm
by JohnCrow
Hi Ben

Thanks for the reply.
That has been a partial success.
I deleted the upgrade support file from the source folder downloaded from your site, as suggested. I also found I had to remove the references to it in solution explorer once I had loaded the project into VB2008.

It now compiles without the error message (Line 3 in the screendump in my last post, but the 2 warnings are still there.)
Ive tried with the files interop.DAO.dll and ECIO_api.dll in either the project folder and the bin sub folder.

Do these need to be somewhere in the windows folders and registered to remove the warnings.

Although, the compiled exe file seems to run correctly outside of the VB environment as long as the above dll files are in the folder, so I assume the warnings are not critical

Hopefully if this is the case I can now start looking at connecting to my programmer and flowcode.

Thanks

Re: MM Bundles & VB2008

Posted: Thu Dec 27, 2012 7:52 pm
by lewisrendal
Hi John,

Did you manage to get this working, because I'm not new to vb2008, but this error and issue with the files is driving me mad.

Cheers
James