471,046 Members | 948 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Construct OdbcConnection get unhandle error in Windows 2000

My develop computer is windows XP.
My program is just five lines. I am using visual basic .net 2003. I set
the start procedure to sub main. It works fine with my computer. But when I
run the program in windows 2000 and windows 98 system. It goes up an error

Application has generated an exception that could not be handle
Process id=0x300 (768), Thread id=0x410(1040)

Click OK to terminate the application
Click CANCEL to debug the application

The program is like that:
Module Module1
Dim a As New Odbc.OdbcConnection
Sub main()
End Sub
End Module
But if I just declare without contructing the odbcconnection, it work fine
Dim a As Odbc.OdbcConnection

But once I contruct it, it can't
a=new odbc.odbcconnection
This suitation is the same when I use Csharp, surely the error message is
different but still cannot guess the error.

I have install .net framework, mdac2.8 odbc_net but still cannot work
Jul 21 '05 #1
0 920

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mike Fisher | last post: by
6 posts views Thread by Peter Frost | last post: by

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.