Results 1 to 3 of 3

Thread: Funny Trick!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Posts
    261

    Funny Trick!

    If you want to use procedures stored inside a DLL file, you just add a reference to it in your project.

    However, what if you wanted to use procedures stored inside an EXE file? VS.NET wont allow you to add a reference to an EXE file.

    Here's a simple solution (I think it only works with .NET assemblies though): Rename the EXE file to a DLL file. After you do so, .NET doesn't seem to know the difference between that and a 'true' dll file. You can use any public procedures declared within it. I don't know why anyone would need to do this though (If you do, your not a really good programmer), its just a funny thing I found out when experimenting with DLL's and EXE's in .NET.

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    LOL

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    if MS heard that , they'll release .Net 2.

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