C#调用DLL时提示该语言不支持
[img=http://b98.photo.store.qq.com/psb?/5e69e206-8ea3-423f-9e7a-b05341296900/XehzO4t*yWwtkvSlChW0EIxq9OoVWrLr75ZDpfiDapE!/c/Yetddzp4cAAAYmwuazqlcAAA][/img]VB的 Dictionary中有一个this[string]
在C#中
Dictionary voucher = new KFO.Dictionary();//实例化对象
voucher["FDate"] = System.DateTime.Now;//调用VB的this[string]提示该语言不支持“KFO.IDictionary.this[string]”
voucher["FGroup"] = "记";
voucher["FNumber"] = 2888;
KFO.Vector voucherEntry = new KFO.Vector();
KFO.Dictionary tempEntry = new KFO.Dictionary();
tempEntry["FExplanation"] = "凭证录入检测-分录";
tempEntry["FAccountID"]=1000;
tempEntry["FCurrencyID"] = 1;
tempEntry["FDC"] = 1;
tempEntry["FAmountFor"] = 100;
tempEntry["FAmount"] = 100;
voucherEntry.Add(tempEntry); --------------------编程问答-------------------- 求帮助SOS --------------------编程问答-------------------- 什么意思,在C#中写VB代码? --------------------编程问答-------------------- 调用VB写的DLL --------------------编程问答-------------------- 没人会吗? --------------------编程问答-------------------- 用这个 voucher.add("FDate", System.DateTime.Now) 试试,可能 vb 不支持索引器。 --------------------编程问答-------------------- 明天我试试 --------------------编程问答-------------------- 绑定了。 --------------------编程问答-------------------- 楼主做完了吗?现在~我也在做这个。。。。 --------------------编程问答--------------------
补充:.NET技术 , C#