+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Junior Member Neil Mcnzee is on a distinguished road
    Join Date
    Dec 2004
    Posts
    12

    Post 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.....

  2. #2
    Just Another Geek SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,403
    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.

  3. #3
    Senior Member Tedob1 Tedob1 Tedob1 Tedob1 Tedob1 Tedob1 Tedob1 Tedob1 Tedob1 Tedob1 Tedob1
    Join Date
    Nov 2001
    Posts
    4,786
    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.’”

  4. #4
    Junior Member Neil Mcnzee is on a distinguished road
    Join Date
    Dec 2004
    Posts
    12
    sry,I didn't mention what kind of C code....
    actually can a compiled C code be run within the .NET framework?

  5. #5
    Just Another Geek SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute SirDice has a reputation beyond repute
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,403
    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
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  6. #6
    Leftie Linux Lover the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX has a reputation beyond repute the_JinX's Avatar
    Join Date
    Nov 2001
    Location
    Beverwijk Netherlands
    Posts
    2,535
    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 !

  7. #7
    Banned Katja has much to be proud of Katja has much to be proud of Katja has much to be proud of Katja has much to be proud of Katja has much to be proud of Katja has much to be proud of Katja has much to be proud of
    Join Date
    Jul 2005
    Posts
    511
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides