I want to run a C code through a VB.NET application.....
Is their a way by which it can be done?
Any help.....
Printable View
I want to run a C code through a VB.NET application.....
Is their a way by which it can be done?
Any help.....
You mean an executable (compiled C source)? Or C source code?
even if it were possible for you to get the .net framework to run code for you, it uses c# and wouldn't understand C
sry,I didn't mention what kind of C code....
actually can a compiled C code be run within the .NET framework?
This should get you started:
Introduction to Monitoring and Managing Windows Processes
Edit: link seems broken.. forum automagicly adds a
tag near the end..
http://msdn.microsoft.com/library/de...sProcesses.asp
To quote Charles Babbage:
I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Let's see. There is C++ and in Visual Studio.NET you can compile it as managed code, meaning that it actually becomes C++.NET code. You should be able to use this in your VB.NET application. Of course, C# is more preferred as a .NET based C-like language because it's easier in syntax and requires a bit less intelligence to use correctly. (It's easier to understand and to read.)
If you can't compile this C code into managed code, then it's still possible to call this code by putting it into a DLL and then build a wrapper around it. Something with P/Invoke's and other complex stuff will be required to be used to access it in that case, though. Pretty complex stuff for the inexperienced developers, though.