whitehat wrote:
> I define a string constant in program A and compile it.
> I want program B to look at A.exe and get the value of the constant.
> 
> How do I do this in program B?

What you should do is declare the string as a resourcestring. Then it 
will be in your program's string table, and there are documented ways of 
getting strings from there. Look at the LoadString API function. To know 
what the ID of the string is, generate a map file when you compile 
program A. Delphi will generate a .drc file that should tell you about 
all the strings in your program's string table.

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to