Re: fetch a fragment of source code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



=?Utf-8?B?QU1lcmNlcg==?= <AMercer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:35C710CF-B651-48C3-BB2C-35FCC86A958F@xxxxxxxxxxxxx:

I have a vb.net program that needs to display a few fragments of its
source code, typically one to five lines for each fragment, and each
line contains one assignment statement. I need to do this in a few
places (about 10) in a medium size program (about 10k lines).

In the old C days, I would use the stringize operator to capture a few
source fragments. No such thing in VB (too bad, actually). I need
this to work in both debug and production environments. I'm currently
at .NET 2003 FW 1.1, and I'll upgrade if needed to solve this problem.

Where are you fetching the source code from? From within the assembly? I
don't believe the source code is embedded within the built binaries ... so
you'll have to cross reference with the original source code files.
.



Relevant Pages

  • Assembler opcode CALL with +0 offset
    ... Unfortunatelly for the fragment that fails I have no source code -- I ... can use only assembler dumps from core file, ... not sprintf. ...
    (comp.unix.solaris)
  • Re: How to bind JTable and data in a text file ?
    ... having your program construct, at run time, a fragment of source code in ... This doesn't explain why you tried to construct, at run time, a fragment of source code in a String. ...
    (comp.lang.java.programmer)
  • Re: IPv4 fragmentation --> The Rose Attack
    ... >initial offset zero fragment of a SYN packet. ... >bytes into the datagram. ... From the source code of ip_fragment.c follows that the worst case is if ...
    (Bugtraq)
  • Re: Does VCL have a future?
    ... >source code, and this competitive advantage is instantly nullified by the ... stop himself typing LET before every assignment statement :-) ...
    (borland.public.delphi.non-technical)