Imports problem with ByteFX

Imports problem with ByteFX

Post by Bob Achgil » Sun, 27 Jun 2004 15:56:56


I am trying to use ByteFX with VB.Net for accessing data
in MYSQL. I am using Visual Studio 2003 on a WinProXP
platform.

After running the install for ByteFX and putting the
subject line of code at the top of my progrom ... I get
the syntax error:

"ByteFX.Data.MySqlClient cannot be found."

Hmmm??

Thanks,

Bob Achgill
 
 
 

Imports problem with ByteFX

Post by Bob Achgil » Sun, 27 Jun 2004 16:07:30

This is the line of code that did not work...

Imports ByteFX.Data.MySqlClient

 
 
 

Imports problem with ByteFX

Post by Tom Shelto » Sun, 27 Jun 2004 16:20:26


Did you add a reference to the ByteFX.MySqlClient.dll to your project?

--
Tom Shelton [MVP]
 
 
 

Imports problem with ByteFX

Post by Bob Achgil » Sun, 27 Jun 2004 18:37:54

Thanks!

OK... I added a reference to both:
ByteFX.MySqlClient
ByteFX.MySqlClient.Design

That solved the error "ByteFX.Data.MySqlClient cannot be
found."

But I still have some more syntax errors

Type "ByteFX.Data.MySqlClient.SqlCommand" is not defined.
Type "ByteFX.Data.MySqlClient.SqlCommand" is not defined.
Type "ByteFX.Data.MySqlClient.SqlConnection" is not
defined.
Type "ByteFX.Data.MySqlClient.SqlConnection" is not
defined.

And so on...






data
get
your project?
 
 
 

Imports problem with ByteFX

Post by hirf-spam- » Sun, 27 Jun 2004 19:44:09

* "Bob Achgill" < XXXX@XXXXX.COM > scripsit:

After adding the reference, you can check the classes contained in the
library using the object browser.

--
Herfried K. Wagner [MVP]
<URL: http://www.yqcomputer.com/ ;
 
 
 

Imports problem with ByteFX

Post by Tom Shelto » Mon, 28 Jun 2004 01:14:46


Thats because it's MySqlConnection, MySqlCommand, MySqlDataAdpater, etc...

There is a help file installed with the dataprovider. It should be in the
same directory with the ByteFX.Data.MySqlClient.dll. You can also look at
the object browser to see the names of the actual classes.

--
Tom Shelton [MVP]
 
 
 

Imports problem with ByteFX

Post by Bob Achgil » Mon, 28 Jun 2004 07:09:32

Thanks!

I was missing a "My" on the front of each object.

For example
ByteFX.Data.MySqlClient.SqlCommand

Should be
ByteFX.Data.MySqlClient.MySqlCommand


Bob




be
defined.
defined.
MySqlDataAdpater, etc...
It should be in the
You can also look at
classes.