Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...............
Posted

1 solution

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:

VB
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900