How do a I call a DLL from a URL?
I want to call a dll file from a URL and send parameters to the program as well. The program uses the three parameters to create a file folder on a network drive in the format of
z:\ parameter1\parameter2_parameter3
I would like to think that it is as simple as
z:\program.dll?parameter1=string1+parameter2=string2+parameter3=string3
Update:In php I could send values submitted in a form via a URL and then do work with them. I don't see how this is different.
Comments
If the DLL resides on the web server, you can use the regular way of accessing the DLL (i.e.: the same way it would be called from within a program IF the DLL allows for access that way)
DLLs are libraries, and have to have a caller program that references them. Just "opening" a DLL is always going to fail, because there is no way to instantiate the objects within the DLL.
If you're running ASP or ASP.Net on an IIS server, simply include the DLL into the application (set a reference), and pass on the parameters you retrieve through the URL (and that's called the "query string", by the way.
If you're using PHP, you'll have to have a DLL that can be parsed by PHP; if it can, include it in the PHP.ini file, and reference the DLL functions as you would any other external library.
If the DLL cannot be parsed by either ASP or PHP, but you have an encapsulating executable, you can call that executable with the query string results as parameters, and have the exe take care of parsing it towards the DLL.
There's the Shell command in ASP and the Eval (I think - I'm not behind my own system, so I can't pull a reference) command in PHP to start an external program on the server.
Using the DLL as a direct reference inside the query string, however, will only work if the DLL has been set to accept direct input through the command line, and the DLL has been setup as part of the web application (server side).
I have seen websites where programs were called through the browser, but those programs are usually highly specialized and generated specifically for the purpose.
Does it result your pc in any respect? because of the fact if it doesnt then i might leave it on my own, (dont forget approximately it) and examine out contacting some place that may restoration it... Like geeksquad or something... additionally, try copying it out till this is an definitely tab you click on, like the main significant tabs once you first turn on your pc, then click on it, carry it, and drag it to the recycle bin, then empty out your recycle bin.
The kind of thing you want to do isn't really allowed because it would open the door to all sorts of evil behavior.