Executing *.dll methods from command prompt, print to window?

I am writing a unmanaged plugin for Unity3D and I can't keep starting the process to test the code, so I am just looking to execute my tests directly in a command prompt.

Question is I'm using RUNDLL32.EXE to call my entry point but I am unable to print out to the command window with:

1
2
OutputDebugString((LPCTSTR)"Test");
cout << "Test" << endl; 


Is there any suggestions on how to print to the window? Also, I did try and attach the process but I am getting 'no symbols loaded' if I could get a suggestion on how to attach properly or the limitations that would be amazing.

Thanks guys!
Last edited on
Did you run the code in Debug mode? OutputDebugString works only in Debug mode
Yeah unfortunately it's not displaying anything in the prompt:

Screen shot (from imgbb.com): https://ibb.co/iHbzsv
try this:
OutputDebugString(_T("Hello world")); // #include <tchar.h>

Was the screenshot from the Output window with Show output from Debug?
Topic archived. No new replies allowed.