求大神指导如何用winform调用C++写的算法。。。 winform C# c++ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把这些方法的dll封装成COM组件,调用即可 void QuestGraph::MolReader(){ char answer = 'n'; char ch[3] = {0}; char lines[512] = {0}; ifstream inFile; bool canOpen = false; // Open the mol file do { char filename[50]="01.txt" ; cout << "Input the mol file name of the QuestGraph: "; cin >> filename; inFile.clear(); inFile.open(filename); if(!inFile) { cout << endl << "Fail to open mol file: " << filename; cout << endl << "Do you want to try again?"<< "\n" <<"Type Y or y for yes; any other char for no: "; cin >> answer; if (answer != 'Y' && answer != 'y') { cout << endl << "The programme is closed!" << endl; exit(1); } } else { cout << endl << "Succeed open mol file: " << filename << endl << endl; canOpen = true;这个是C++编程的,我如何在winform中实现 char filename[50]=this.textbox.text 如果C++那个算法的dll,不是com规范的话,则用dllimport来载入方法 如何做一个事件提醒,用windows服务吗?怎么实现 最近打印和外部调用dll的问题很多,分享一下我的C#OPOS打印经验。 web-config如何配置实现页面压缩 有关类定义的一个小问题 程序运行到“cn.open();” 就报错了 关于hashtable的性能 c# 怎么获取word的表格索引值 在线等待:DATAGRID添加记录问题<--不解决不能回家 服务器上不能使用office,com组件配置不成功,望牛人指点 location的问题 调用excel Rate方法异常 C#读取数据库写文本ID相同行连接
{
char answer = 'n';
char ch[3] = {0};
char lines[512] = {0};
ifstream inFile;
bool canOpen = false; // Open the mol file
do
{ char filename[50]="01.txt" ;
cout << "Input the mol file name of the QuestGraph: ";
cin >> filename;
inFile.clear();
inFile.open(filename);
if(!inFile)
{
cout << endl << "Fail to open mol file: " << filename;
cout << endl << "Do you want to try again?"<< "\n"
<<"Type Y or y for yes; any other char for no: ";
cin >> answer;
if (answer != 'Y' && answer != 'y')
{
cout << endl << "The programme is closed!" << endl;
exit(1);
}
}
else
{
cout << endl << "Succeed open mol file: "
<< filename << endl << endl;
canOpen = true;
这个是C++编程的,我如何在winform中实现 char filename[50]=this.textbox.text