You can use rundll32.exe to run a dll as a app, i am using this code

Process p = new Process();
p.StartInfo.FileName = "C:\\WINDOWS\\system32\\rundll32.exe";
p.StartInfo.Arguments = "C:\\Dll.dll" //Dll.dll is a simple "hello world" program
p.Start();

but it is not working, any ideas?

I think you need to use main function and System(PAUSE);
return EXIT_SUCCESS;

That is C++ its in C#

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.