Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help How to convert code to .dll in vc prog
#1
Rainbow 
hey guys,
i have question, it read C# code from .txt by 'read all lines method' to C# prog, how i can convert that code to .dll via C# code. ( Not "Add class" )

lol bad english.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#2
(01-08-2012, 00:28)Se7en Wrote: hey guys,
i have question, it read C# code from .txt by 'read all lines method' to C# prog, how i can convert that code to .dll via C# code. ( Not "Add class" )

lol bad english.

As in dynamically compile the code? Sure, use CodeDom, you can find a really good tutorial here:
http://www.codeproject.com/KB/cs/codecompilation.aspx

Note this line given in the example:
Code:
cr = cc.CompileAssemblyFromSource(cp, this.rtfCode.Text);

You should replace this.rtfCode.Text with the source of the DLL you'd like to compile as a string.
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#3
Use compiler's commandline, google it
[Image: lQDUjba.jpg]
Reply

#4
(01-08-2012, 01:18)OrangePL Wrote: Use compiler's commandline, google it

No need to go to such trouble using the C# compiler when you've already got classes and functions to compile code in the framework itself already...
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#5
ok thanks to all. it works now.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
Yeah, I'm not a C# coder and you ninja posted it while I was typing this on my phone Smile
[Image: lQDUjba.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 3,977 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,464 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,289 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,098 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,570 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,570 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 2,382 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,546 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 4,021 04-05-2013, 18:15
Last Post: SuperNovaAO
Smile Help Help me with a code (who knows) NyZzE 2 2,512 04-05-2013, 01:47
Last Post: NyZzE

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.