-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: rags_rao
Message 3 in Discussion




Here's another one. This one 
creates a dll and an exe that consumes that dll dynamically. 



The code is fully commented with 
corresponding c# source (vijaymukhi sylie... ). It also 



demonstrates how to access 
private members of class thru reflection (actually reflection on 



reflection[if u could call that] 
to generate IL, but its no big deal).

 <o:p></o:p>

I have attached the source for 
creating assemblies(emitil.cs) and source code, that could 



generate similar dll and exe 
(actually i have reverse enggd the output from the compilation 



of these files).

 <o:p></o:p>

how to use these files:

1. csc EmitIL.cs

2. EmitIL.exe -> generates 2 
files printer.dll and test.exe

3. csc /t:libary /o+ printer1.cs 
-> printer1.dll 

(there is lot of diff in IL 
generated when o+ is used)

3. csc /r:printer1.dll /o+ 
test1.cs -> test1.exe

 <o:p></o:p>

printer.dll,test.exe are 
dymanically generated assemblies, printer1,test1 are generated from 



CS compiler. ouput 
from test1.exe,test.exe are similar

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to