home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,965 of 10,840   
   Ralph to qwert   
   Re: Visual Basic reversed engineering   
   14 Mar 06 08:15:18   
   
   XPost: alt.comp.lang.visualbasic   
   From: nt_consulting64@yahoo.com   
      
   "qwert"  wrote in message   
   news:QoSdnR9zfeKdLYvZRVnyiA@casema.nl...   
   > Thanks for the answers.   
   >   
   > FileMon is pretty handy. Good tip. Also, it turns out that if you simply   
   > drag the exe file to notepad, the strings show up. But only with a 'space'   
   > char between each of them. Don't know if this trick always works.   
   >   
   >   
      
   Yes it always works for literal strings in code. (The ones you define as   
   "abcde")   
   You will find they are stored at the bottom of the executable file within   
   the same area of a data segment. (the old term, but still descriptive, )   
      
   The compiler does this in order to manage identical string optimizations   
   ("Eliminate Duplicate Strings"). If for example you define "abcde" in your   
   code more than once, the optimizer will substitute the same address for both   
   strings and only store it once.   
      
   The reason you are seeing 'spaces' between the characters is because while   
   they were declared as ANSI (8byte chars), they are stored as Unicode (16byte   
   chars).   
      
   hth   
   -ralph   
      
      
      
      
   >   
   >   
   > "J French"  wrote in message   
   > news:44152031.82424423@news.btopenworld.com...   
   > > On Mon, 13 Mar 2006 08:05:56 +0100, "qwert"  wrote:   
   > >   
   > > >Hello,   
   > > >   
   > > >I have an application (.exe) build in Visual Basic 6. The code (and   
   > > >programmer) are gone. The program doesn't work because it looks for a   
   ms   
   > > >access file (.mdb) in an unknown directory. I need to figure out which   
   > > >directory this is. Is there anyway to do this? The direcory is probably   
   > > >hard-coded in the .exe, so could it be still in there as a string? Open   
   > the   
   > > >.exe with some tool and look for strings? Or is there a way to step   
   > through   
   > > >a running vb application?   
   > >   
   > > I use a very old and honky File Viewer/Editor   
   > >   
   > > www.jerryfrench.co.uk/fd.zip   
   > >   
   > > That would be my first line of attack   
   > >   
   > > The next line would be to try FileMon :-   
   > >   
   > > http://www.sysinternals.com   
   > >   
   > > >This probably isn't a vb6 question, but that is what I work with and   
   that   
   > is   
   > > >what this application is build with and I have no idea how to   
   accomplish   
   > > >such a task, or if it's even possible. So any help would great,   
   > >   
   > >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca