在Visual Studio命令提示符下编译程序以定位x86 [英] compile program to target x86 in visual studio command prompt

查看:76
本文介绍了在Visual Studio命令提示符下编译程序以定位x86的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好 -



在我的控制台应用程序中,我使用OLDEB将csv转换为DataTable。当我从VS命令提示符运行.cs文件时,我收到错误Microsoft.Jet.OLEDB.4.0提供程序未在本地计算机上注册。我已经安装了Microsoft Access数据库引擎,但我仍然收到错误。 VS命令提示符中是否有任何可用命令将其转换为x86。



注意:我在Windows 7,64位机器上工作。



请帮助,

提前致谢。

Hi All-

In my console application I am using OLDEB to convert csv to DataTable. When I run the .cs file from VS command prompt I am getting the error 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. I have already installed Microsoft Access Database Engine, but still I am getting the error. Is there any command available in VS command prompt to convert it into x86.

Note: I am working in a windows 7, 64-bit machine.

Please help,
Thanks in advance.

推荐答案

您或您的问题,看起来有点困惑。如果你想使用Jet 4.0,你必须构建到x86,它将在64位系统上运行得非常愉快。或者您可以以64位运行并使用Microsoft.Ace.OLEDB.12.0引擎。无论哪种方式,您都需要下载驱动程序并将其安装到您的系统上。
You, or your question, seem a little confused. If you wish to use Jet 4.0 then you must build to x86, which will run quite happily on a 64bit system. Or you could run as 64-bit and use the Microsoft.Ace.OLEDB.12.0 engine. Either way you need to download the driver and install it on your system.


Richard已经告诉您该怎么做。

更多操作依据:如果你有已经安装的MSoffice 32位只需重新编译代码,将Visual Studio中的解决方案平台从任何CPU更改为x86,代码就可以正常工作。
Richard already told you what to do.
On more operative basis: if you have MSoffice 32 bits already installed simply recompile your code changing the solution platform in visual studio from 'any CPU' to 'x86' and your code will work.


这篇关于在Visual Studio命令提示符下编译程序以定位x86的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆