VS 2010中C ++/CLI中的类型化数据集 [英] Typed datasets in C++/CLI in VS 2010
本文介绍了VS 2010中C ++/CLI中的类型化数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我配置sqlDataAdapter并从Data-> Generate Dataset运行命令时,IDE会为数据集生成xsd和h文件,但是以错误结尾.
尝试设置数据源生成器属性时发生异常.
在C#项目中,相同的操作没有错误.怎么了 ?谢谢
When I configure sqlDataAdapter and then run command from Data->Generate Dataset the IDE generates xsd and h file for dataset, but then ends with error.
An exception occurred while attempting to set the data source generator property.
The same operation work without error in C# project. What''s wrong ? Thanks
推荐答案
Microsoft在VS2010中不很好地支持C ++/CLI.他们还为此禁用了Intellisense.您是否曾在VS的较旧版本(例如2008)中尝试过此操作?
Microsoft is not supporting C++/CLI well in VS2010. They also disabled Intellisense for it. Have you tried this in an older version of VS such as 2008?
致Ted2102:
感谢您的回答,当我将测试从VS2008迁移到VS2010时,在VS2010中遇到了此问题.
C ++/CLI与VS2010组合不好.
C#对我来说并不有趣,我仍然处在不受管理的世界中……
To Ted2102:
Thank for your answer, this problem i have encountered in VS2010 when i make test migrating from VS2008 to VS2010.
C++/CLI with VS2010 is not good combination.
C# is not interresting for me, i remain in not managed world...
是的.这也是我的问题.微软正试图
删除CLI/C ++并将其替换为C#,这是第一步.
oleDbDataAdapter1-> Fill(dataSet1,L"Authors");
dataTable1 = dataSet1->表格->默认[0];
字符串^ x = dataTable1->行->默认[0]->默认[1]-> ToString();
会发生异常!!!
yes. It is my problem too. Microsoft is trying to
drop CLI/C++ and substitute it with C# and that is the first step.
oleDbDataAdapter1->Fill(dataSet1,L"Authors");
dataTable1=dataSet1->Tables->default[0];
String^ x=dataTable1->Rows->default[0]->default[1]->ToString();
an exception will occur!!!
这篇关于VS 2010中C ++/CLI中的类型化数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文