Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Staticlly Link Assemblys

Staticlly Link Assemblys

Scheduled Pinned Locked Moved C#
csharpc++tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MKlucher
    wrote on last edited by
    #1

    I have a solution with two projects in it, a Managed C++ project and a C# project which is using (dependant on) the Managed C++ project. Is there any way to "Staticlly Link" this Assembly into the C# EXE. I need to keep them as seperate project for source control reasons so I can't move the files into that project directly. Anyone know how to do this? Thanks!!!

    C 1 Reply Last reply
    0
    • M MKlucher

      I have a solution with two projects in it, a Managed C++ project and a C# project which is using (dependant on) the Managed C++ project. Is there any way to "Staticlly Link" this Assembly into the C# EXE. I need to keep them as seperate project for source control reasons so I can't move the files into that project directly. Anyone know how to do this? Thanks!!!

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      AFAIK you cannot. Even if you could move the source code in to one project it still won't work as the source code is in two different languages and you cannot mix languages in a single project.


      "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

      N 1 Reply Last reply
      0
      • C Colin Angus Mackay

        AFAIK you cannot. Even if you could move the source code in to one project it still won't work as the source code is in two different languages and you cannot mix languages in a single project.


        "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

        N Offline
        N Offline
        Nick Parker
        wrote on last edited by
        #3

        You can in Visual Studio 2005 : Mix languages in C++ projects in VS 2005[^]. :-D - Nick Parker
        My Blog | My Articles

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups