I have a lot of source code and I was looking for "sizeof".

I thought explorer would search thru ever file, but it didn't find any instance.
I know that it was in some of the files.

Am I doing something wrong?

Thanks.
Posted on 2010-06-10 21:13:22 by skywalker
Yeah you did something wrong.
Anyway, what were you looking for in particular?
Posted on 2010-06-10 23:44:50 by Homer
You have to edit the extensions you are interested in with regedit and add some stuff to their description (something like "Perceived Type = text", IIRC). Otherwise it won't search within that type of files. This applies to xp, vista and 7.
Posted on 2010-06-11 00:00:59 by ti_mo_n
Yeah, the new versions of Windows blow regarding file search. :-(

A great freeware tools is Agent Ransack. ( http://www.mythicsoft.com/agentransack/ )
Posted on 2010-06-12 07:18:55 by JimmyClif

Yeah you did something wrong.
Anyway, what were you looking for in particular?

I wanted to use sizeof the make storage
equal to the # of chars in string.




.data

string      db          ''    ; not $ = (Alt 219)MUST BE AT THE END !!
 
.data?

storage      db      50 dup(?) ; contains decrypted string
Posted on 2010-06-12 07:55:16 by skywalker
If I understand your request correctly:

.data

string      db          ''    ; not $ = (Alt 219)MUST BE AT THE END !!
 
.data?

storage      db      (sizeof string) dup (?) ; contains decrypted string


Now 'storage' is defined as N (uninitialized) bytes, where N = sizeof (string)
Posted on 2010-06-12 08:26:11 by Homer
thanks.

I found this works too.
storage      dw      $ - string

Posted on 2010-06-12 08:39:36 by skywalker
if that worked its pure luck, considering both are in different segments
storage is in .data? (uninitialised data).. string is in .data

so $ - string wouldn't be a good idea..
Posted on 2010-06-12 08:54:59 by evlncrn8