Open nickos64252 opened 7 months ago
Have rhe same problem
Hi, I am aware of this issue. Unfortunately, this is not so trivial to solve, because we are converting a ready-made executable, and the Start function is at its entry point, which is in fact before the main
function is called. And it has an internal logic that fetches the commandline of the main application, to supply it to the main
function. So of course when our module runs as a DLL, it is no longer the main application, and it will fetch the commandline of its host.
I have some ideas that I am gonna try, but currently I have some other priorities, so this has to wait, sorry.
Hi
No worries and thanks your reply. I can definetley live without it, just wanted to know that there are at least two people that could use the feature 😉
Hello,
this is a very interesting project. I wanted to use it to convert some programs that take their parameters from command line.
So, for testing, I created a program that addition two int as parameter 1 and 2 and output the sum in a file (as there is no console output, but I am not interested in it).
When I call "Addition.exe 99 6", parameters 1 and 2 are 99 and 6. That s ok When I call "rundll32.exe .\Addition.dll,Start 99 6" ; parameters 1 and 2 are "".\Addition.dll,Start and 99. And If I load it in a program, it just display the parameter of that program !
Is there a way to correct that, so parameter 1 is alwways the parameter send to the entry point
Thanks
Regards
Nicolas