MM Bundles & VB2008

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Contact:

MM Bundles & VB2008

Post 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
1 in 10 people understand binary, the other one doesn't !

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: MM Bundles & VB2008

Post 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.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Contact:

Re: MM Bundles & VB2008

Post 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.71 KiB) Viewed 3864 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 ?
1 in 10 people understand binary, the other one doesn't !

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: MM Bundles & VB2008

Post 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.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Contact:

Re: MM Bundles & VB2008

Post 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
1 in 10 people understand binary, the other one doesn't !

lewisrendal
Flowcode V4 User
Posts: 61
Joined: Tue Feb 01, 2011 7:21 pm
Contact:

Re: MM Bundles & VB2008

Post 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

Post Reply