I inherited an ancient C program that was a Windows console application. The application connects to a data source and returns some values to the console. A very simple application. I had to make some changes and recompiled the code under Visual Studio 2008 C++. It compiled, linked and ran at the console perfectly. The problem is that the App is called by a Perl script that embeds the output from the console into html code. The old App works perfectly in the Perl and from the console. The new App runs fine from the console but when embedded in the Perl it runs but there is nothing in the resulting html code that is generated.
I know the Perl is working because when the old App name is inserted into the code the output contains the output from the console App.
The only thing I can think of is that there must be some compiler switch that I am missing that keeps it from working from the Perl script system call.