Results 1 to 6 of 6

Thread: Convert from exe to sln file

  1. #1

    Thread Starter
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    Convert from exe to sln file

    I want to ask you. how can i convert from exe file to solution file.

    i am not sure it is possible or not.

    thanks...

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: Convert from exe to sln file

    Google: 'Decompiling .NET'

  3. #3

    Thread Starter
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    Re: Convert from exe to sln file

    Ok, thanks.

    I am trying now

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Convert from exe to sln file

    The short answer is that you can't. An EXE is the product of compiling a project. An SLN file is just used to manage a solution, which is made up of multiple projects. What you can do is create a new solution, which will contain a single project by default. You can then use tools to decompile an EXE file to get its original source code. You can then paste that source code into classes that you've added to your own project.

    I'm not sure whether there's a tool that will create a project for you automatically but I've never seen one. You can certainly use .NET Reflector to see original source for an EXE and copy it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    Re: Convert from exe to sln file

    Thank you.

    But i dont know orginal code after recovery. because it is very many forms.

    so how dose that code organize ?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Convert from exe to sln file

    Quote Originally Posted by Nguyendangtruong View Post
    Thank you.

    But i dont know orginal code after recovery. because it is very many forms.

    so how dose that code organize ?
    That's up to you to work out, if you even have the legal right to do so.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Click Here to Expand Forum to Full Width