I vaguely recall that you might need to redirect the stdout to the console. I might be wrong though (since you had your code working earlier):
AllocConsole();
freopen("CONOUT$", "w", stdout);
std::cout << "This works" << std::endl;
More Related Contents:
- How do I safely pass objects, especially STL objects, to and from a DLL?
- How to make a .lib file when have a .dll file and a header file
- When to use dynamic vs. static libraries
- Application failed to start because it could not find or load the QT platform plugin “windows”
- Win32 API to enumerate dll export functions?
- Exporting classes containing `std::` objects (vector, map etc.) from a DLL
- C++ DLL Export: Decorated/Mangled names
- Getting LibCurl to work with Visual Studio 2013
- How do I build an import library (.lib) AND a DLL in Visual C++?
- Difference between shared objects (.so), static libraries (.a), and DLL’s (.so)?
- Get DLL path at runtime
- What happens to global variables declared in a DLL?
- How do I use a third-party DLL file in Visual Studio C++?
- what does __declspec(dllimport) really mean?
- Is there a way to find all the functions exposed by a dll
- How to export a C++ class from a dll? [duplicate]
- DLL References in Visual C++
- .def files C/C++ DLLs
- Why does this program crash: passing of std::string between DLLs
- What’s the differences between .dll , .lib, .h files?
- Get signatures of exported functions in a DLL
- Can Cython code be compiled to a dll so C++ application can call it?
- Windows & C++: extern & __declspec(dllimport)
- Is rebasing DLLs (or providing an appropriate default load address) worth the trouble?
- Using shared_ptr in dll-interfaces
- returning std::string/std::list from dll
- C++ How to compile dll in a .exe
- Loading a dll from a dll?
- C++ static variable in .lib does not initialize
- Throwing C++ exceptions across DLL boundaries