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. have some method in a exe file.but I want to use them in another project

have some method in a exe file.but I want to use them in another project

Scheduled Pinned Locked Moved C#
tutorialquestion
4 Posts 4 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.
  • J Offline
    J Offline
    jzb
    wrote on last edited by
    #1

    How to do it that include a exe file In a project? I have some method in a exe file.but I want to use them in another project.Can do ti? How to do it?

    E D 2 Replies Last reply
    0
    • J jzb

      How to do it that include a exe file In a project? I have some method in a exe file.but I want to use them in another project.Can do ti? How to do it?

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      hi there, u cannot include an exe file as reference an dll. But u can reuse methods in exe file by executing it from ur application << >>

      1 Reply Last reply
      0
      • J jzb

        How to do it that include a exe file In a project? I have some method in a exe file.but I want to use them in another project.Can do ti? How to do it?

        D Offline
        D Offline
        Daniel Grunwald
        wrote on last edited by
        #3

        In .NET, you can reference .exe files just like you do with .dll files.

        M 1 Reply Last reply
        0
        • D Daniel Grunwald

          In .NET, you can reference .exe files just like you do with .dll files.

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          But you have to note that you can't add the reference with VS.NET, as only DLLs are selectable as assembly references. But if you simply rename the EXE to DLL, it can be referenced without problems. Regards, mav

          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