如果应用程序使用OLEDB提供程序并且Windows 7是64位,则无法为X86进行编译 [英] Compiling for X86 will not work if application uses OLEDB provider and Windows 7 is 64-bit
问题描述
Project -> 标签 -> 选择 "x86"而不是"AnyCPU"
昏暗的新System.Data.OleDb.OleDbConnection("Provider = Microsoft.ACE.OLEDB.12.0; Data Source = C:\ Program Files \ MSN \ MsnInstaller \ travels.mdb")
将Dim ds用作新数据集
昏暗的SQL作为字符串
Dim num as Integer
帮我 解决方案
也许您应该在Internet上搜索这匹死马.
但是,最多的答案是:在Visual Studio中将您的应用程序设置为X86(我不记得我如何在Visual Studio 2005中做到这一点)
请在此主题中删除您重复发布的消息
http://social.msdn.microsoft.com/Forums/zh-CN/vbgeneral/thread/10364512-709a-4379-960a-fc7f4a9bfc6a
只要没有人添加可以做的事情,请注意甚至有人将来自双重张贴者的消息标记为滥用.
I coded under XP 32 bit using visual studio 2005 and I am running my application on Win 7 64-bit using office 2003. All I done
Go to Project menu -> Properties -> Compile tab -> Select "Advanced Compile Options" -> Select "x86" instead of "AnyCPU"
but Its not working pls help me ....how to run on 32 bit windows 7 and 64 bit xp.......my database connection
Public Class Vehicledetails
Dim con As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\MSN\MsnInstaller\travels.mdb")
Dim inc As Integer
Dim ds As New DataSet
Dim da As OleDb.OleDbDataAdapter
Dim sql As String
Dim MaxRows As Integer
Dim num As Integer
pls tell correct database connectivity....
But 32 bit Windows 7 when insert the data error is operation must use an updateable query............
help meMaybe you should search the Internet for this dead horse.
However, the most answers are: set your application in Visual Studio to X86 (I don't remember me how to do that in Visual Studio 2005)
And please remove your double posted message in this thread
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/10364512-709a-4379-960a-fc7f4a9bfc6a
As long as nobody has added something that can be done, be aware there are even persons marking messages from double posters as abuse.
这篇关于如果应用程序使用OLEDB提供程序并且Windows 7是64位,则无法为X86进行编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!