Results 1 to 6 of 6

Thread: View compiled comments

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    View compiled comments

    Is there any way for someone with a little too much interest in my program to view the comments that I made while writing the code after it has been compiled or does the VB compiler completely ignore the comments?

    Thanks,

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    I believe the compiler strips out comments and debug info when you build in release configuration. But once it's compiled, it's in machine code anyway; how would they read it w/o a decompiler?

  3. #3
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    The older versions of Visual Basic kept the comments in the source code. The old programs compiled with VB needed specific VB runtime files, thus leaving the comments in wouldn't matter, but VB.NET uses the Common Language Runtime. I would assume all comments are stripped from the .NET languages, so they have smaller file sizes.

    Question for others: Are there comments in IDL files?

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  4. #4
    PowerPoster SuperSparks's Avatar
    Join Date
    May 2003
    Location
    London, England
    Posts
    265
    As it happens I looked at the IL of one of my apps with a Hex Editor the other day. You can read all the control names, but not variable names or comments.
    Nick.

  5. #5
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    Originally posted by SuperSparks
    As it happens I looked at the IL of one of my apps with a Hex Editor the other day. You can read all the control names, but not variable names or comments.
    That's pretty interesting. I wonder why they configured it so you can read the controls? strange

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Yeah, that does seem strange, you never know with M$ anywayz...

    Thanks for your input guys... I feel a little more secure about this stuff now.


    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

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