c++ - AllocConsole() not displaying cout -


i) a DLL where I use the AllocConsole (and the court has to display the data for debugging purposes.
It used to work fine but since I update my compiler (Visual Studio 2012) to the latest dll not only shows the console but also print / COUTS.
I am out there as the idea of ​​why this is happening . Any ideas?

Part of my code

  __ dec Lspec (dllexport) INT APIENTRY DllMain (HMODULE hDLL, DWORD Cause, LPVOID Safe) {Switch (Cause) {Cases DLL_PROCESS_ATTACH: AllocConsole (); DisableThreadLibraryCalls (hDLL); // DietTransConstructionBijin (); DetourUpdateThread (GetCurrentThread ()) Dizziness Art (& Amp; PVOD & amp; nbsp; PS & amp; nbsp; Messind); if (Detortransaction Commit () == NO_ERER) cout << "[" & lt;   

But nothing is shown. After the text "itemprop =" text ">

I remember a little that you studied Utah may need to redirect to the console though I may be wrong (because you had previously worked your code):

  AllocConsole (); Freeopen ("Conte $", "W", Standout); Std :: cout & lt; & Lt; "This Works" & lt; & Lt; Std :: endl;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

c# - Add Image in a stackpanel based on textbox input -

java - Reaching JTextField in a DocumentListener -