SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Evangelist kuhajeya's Avatar
    Join Date
    Sep 2003
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    is it possible to mingle c++ with asp.net code

    dear buddies,

    is it possible to mingle c++ code with asp.net code, such as c#/vb used with asp.net code

    if so, is there any special declartion to be asigned?

    some words on this would be much appriciatable!!

    thanks

    Kuhajeya

  2. #2
    SitePoint Addict Richard Conyard's Avatar
    Join Date
    Jun 2005
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know, but if you ask in the .Net (since this is a question about .net) forum they might be able to help.

  3. #3
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,653
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Yes and no.

    You cannot mingle directly. But, if your C++ application fits certain criteria, and you have control of the security environment on that box, you could reference a C++ dll or assembly without too much trouble.

    I would ask why bother. From what numbers I have seen, for nearly any case one is running into on the web, after the JIT compilation (or, after it has been run once), solid C# code is only marginally slower than compiled C++ in most tasks.

  4. #4
    SitePoint Evangelist kuhajeya's Avatar
    Join Date
    Sep 2003
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wwb_99
    Yes and no.

    You cannot mingle directly. But, if your C++ application fits certain criteria, and you have control of the security environment on that box,

    after the JIT compilation (or, after it has been run once), solid C# code is only marginally slower than compiled C++ in most tasks.

    that is fine

    something more on "control of security environtment" would be great!!!

    Thanks

    Kuhajeya

  5. #5
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Cool

    You can't use C++ code in ASP.NET directly but you can use VC++ code as VC++.NET is a part of the .NET framework & hence can be used in ASP.NET
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  6. #6
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,653
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kuhajeya
    that is fine

    something more on "control of security environtment" would be great!!!

    Thanks

    Kuhajeya
    Ok. Basically, you need to set things for that DLL to be fully trusted, which is not the case with native, unmanaged code. This is not something one could easily do in a shared hosting environment, and is a bit risky unless you really, really trust that bit of code.

  7. #7
    SitePoint Evangelist kuhajeya's Avatar
    Join Date
    Sep 2003
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ohoo,

    thanks for the reply


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
  •