Is the C++ application a console application? If not, then there is no console to write to. This is no different in version 11 than in previous versions.
Thanks for the response, Steve. We are creating a console in our MFC-based GUI, then the Fortran .dll is called.
Here is the C++ code containing the Fortran call:
// Create a console window, so BRASS can display the analysis progress.
BOOL bConsoleExists = AllocConsole();
if (bConsoleExists)
{
// Set status bar text.
CString sStatusBarText = "Executing BRASS-PIER(LRFD)...";
StatusBarText += " DO NOT CLOSE THIS WINDOW OR THE BRASS GUI WILL CLOSE!";
m_pWnd->SetStatusBarText(sStatusBarText);
SetConsoleTitle(sStatusBarText);
HANDLE hConsoleHandle = GetStdHandle(STD_INPUT_HANDLE);
// Set the console mode so CTRL+C signals are not processed.
DWORD dwMode = 0;
SetConsoleMode(hConsoleHandle, dwMode);
//Call to the FORTRAN analysis
(*lpfnBRASS_PIER_LRFD)(cDatFileName, iDatFileLength, cOutFileName, iOutFileLength,
cExePath, iExePathLength);
FreeConsole();
I noticed this morning that I get the same error for a project that hasn't been rebuilt using version 11.0 yet. Is there something different in the way one of the Fortran libraries (libifcoremd.dll is mentioned, see the attached error message).
Thanks again.
Mark
