5
Answers

Running program with .dll extension!

azie ishak

azie ishak

15y
3k
1
Hi all, From this site : http://dotnetperls.com/process-start-net "Use the Process.Start method to start external EXEs. This method is in the System.Diagnostics namespace. It will show a console window. " How about if the program running using .dll extension? how to code this? What methods should use? Thanks in advance.
Answers (5)
0
naura pax

naura pax

NA 1.9k 64.8k 15y

Thanks Kirtan for clarifying, I seriously didn't know about it.
I am sorry about my earlier post.
0
Kirtan Patel

Kirtan Patel

NA 35k 2.8m 15y
Friend .,

 you can do it with


rundll32.exe of the windows

 RUNDLL.EXE <dllname>,<entrypoint> <optional arguments>


you will get additional information from here

http://support.microsoft.com/kb/164787


dont forget to mark "Do you like this Answer" if answer helped you :)



0
naura pax

naura pax

NA 1.9k 64.8k 15y

Either your exe will have all the functionalities or you'll have to get another exe (for decryption in your case). YOU CANNOT EXECUTE .DLL FILE.
please mark as answerd if helpful.
0
azie ishak

azie ishak

NA 7 0 15y
I think i know what you mean, the dll that u referring is the one we created with class library. But just to reconfirm, when i download this encyption software it said it have 2 active component, one with X.exe and one with Y.dll. when i run X.exe, it become decryption. so that mean im lake of one exe that is for encrypt. When i check is registry, i assume that, this Y.dll is used to encrypt. but I'm not sure. So this Y.dll is a library or execution file? thanks
0
naura pax

naura pax

NA 1.9k 64.8k 15y

hi,
a file with .dll extension is also an assembly (unit of deployment), but you can't run it directly by using any command. It is basically a library which can be referenced in another assembly (.exe).
In short you can reference a dll in your project and use its types and methods in your source code.