473,387 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Imports problem with ByteFX

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
Nov 20 '05 #1
6 1325
This is the line of code that did not work...

Imports ByteFX.Data.MySqlClient

-----Original Message-----
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
.

Nov 20 '05 #2
On Fri, 25 Jun 2004 23:56:56 -0700, Bob Achgill wrote:
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


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

--
Tom Shelton [MVP]
Nov 20 '05 #3
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...


-----Original Message-----
On Fri, 25 Jun 2004 23:56:56 -0700, Bob Achgill wrote:
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
Did you add a reference to the ByteFX.MySqlClient.dll to

your project?
--
Tom Shelton [MVP]
.

Nov 20 '05 #4
* "Bob Achgill" <an*******@discussions.microsoft.com> scripsit:
This is the line of code that did not work...

Imports ByteFX.Data.MySqlClient


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

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
On Sat, 26 Jun 2004 02:37:54 -0700, Bob Achgill wrote:
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...


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]
Nov 20 '05 #6
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
-----Original Message-----
On Sat, 26 Jun 2004 02:37:54 -0700, Bob Achgill wrote:
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...
Thats because it's MySqlConnection, MySqlCommand,

MySqlDataAdpater, etc...
There is a help file installed with the dataprovider. It should be in thesame directory with the ByteFX.Data.MySqlClient.dll. You can also look atthe object browser to see the names of the actual classes.
--
Tom Shelton [MVP]
.

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven K | last post by:
Hello, Is there a way to declare imports so that they don't have to be declared both in Master Page.vb and the Content Page.vb? For example, I have the following in the Master Page.vb Imports...
0
by: Don Lopez | last post by:
I get this exception when I try to run open on the MySQLConnection object. It goes like this: System.TypeLoadException: Invalid PInvoke metadata format. at...
5
by: Fabio | last post by:
Hi all, How can I connect with PostGres 7.4 using vb.net??? any idea??? Thanks in Advance, Fabio
4
by: Jeff Jarrell | last post by:
I am not really there yet with namespaces. I have a "common.dll" that is referenced from another project. now in the consuming project, source file to i'd like to have a "imports common". ...
1
by: Arpan | last post by:
What's the difference between "Imports" & "Inherits"? For e.g. both the codes below work without any errors: Imports System Imports System.Data Imports System.Web.UI Namespace Constructors...
1
by: Thomas Wittek | last post by:
Hi! Is there any possibility/tool to automatically organize the imports at the beginning of a module? I don't mean automatic imports like autoimp does as I like seeing where my...
5
by: kimiraikkonen | last post by:
Hello, I want to ask about "imports" statement. Some projects must be inserted with "imports xxxx" statements before beginning coding. But how do i know when to use or do i have to use "imports"...
0
by: Kay Schluehr | last post by:
Since their introduction in Python 2.5 I only reviewed the new "relative import" notation briefly by reading the "What's new in Python 2.5" article. Now I wanted checkout if I get comfortable with...
3
by: Mohamed Yousef | last post by:
Hello , The problem I'm asking about is how can imported modules be aware of other imported modules so they don't have to re-import them (avoiding importing problems and Consicing code and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.