Execute a Dos Shell command from a C function in a DLL???
i.e. I have a program that I can execute from a Dos Prompt with parameters and this program will send an email.
I want to execute this program with the parameters and have it send an email and then return control back to the function that it was called from. Or better yet I want the function to be able to execute this program and not wait for it to finish.
anyone, pls, how can I do this??
I have tried using system("...") but this freezes.
I have tried execl - it compiles but does weird ........ when it runs.(is this meant for windows? - as far as i know only stuff meant for win should even compile, right?)
When I try to #include <windows.h> then i get a linking error.
can anyone pls help?