-
July 13th, 2005, 02:21 PM
#1
Junior Member
running a C code through VB.NET...
I want to run a C code through a VB.NET application.....
Is their a way by which it can be done?
Any help.....
-
July 13th, 2005, 02:41 PM
#2
You mean an executable (compiled C source)? Or C source code?
Oliver's Law:
Experience is something you don't get until just after you need it.
-
July 13th, 2005, 04:49 PM
#3
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
Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”
-
July 14th, 2005, 03:17 PM
#4
Junior Member
sry,I didn't mention what kind of C code....
actually can a compiled C code be run within the .NET framework?
-
July 18th, 2005, 12:10 PM
#5
Oliver's Law:
Experience is something you don't get until just after you need it.
-
July 18th, 2005, 02:58 PM
#6
To quote Charles Babbage:
I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
July 19th, 2005, 11:11 AM
#7
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|