如何在asp.net 2010中运行C程序 [英] how to run c program in asp.net 2010

查看:51
本文介绍了如何在asp.net 2010中运行C程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


尊敬的先生,

我有一个问题是如何在asp.net中运行c/c ++程序.有可能吗?

如果有可能如何在客户端或服务器端运行文件...



请给我答案...谢谢您,先生...

Respected sir,

I have one problem that is how to run c/c++ program in asp.net. Is it possible or not?

If it is possible how to run file either client side or sever side...



Plz give me answer ... thank you sir...............

推荐答案

您可以在.NET中引用C ++ DLL程序,并利用其中的方法.

这是一个使用C ++进行线性搜索的示例,在ASP .NET按钮单击事件中使用的示例为:

You can refer C++ DLL in .NET program and so utilize the methods in it.

Herez an example to use linear search done in C++, used in ASP .NET button click event as:

Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim MorphID As Integer, rc As Short
rc = LNSearch.InitializeLangData("D:\DataFiles",MorphID)
End Sub

Public Class LNSearch

Declare Auto Function InitializeLangData Lib
"D:\Release\LNSearchDLL. dll" (ByVal DictPath As String, ByRef MorphID As Integer) As Short

End Class


这篇关于如何在asp.net 2010中运行C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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