Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 359241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:22:30+00:00 2026-05-12T12:22:30+00:00

My boss has a windows application that he wrote. It is not a Windows

  • 0

My boss has a windows application that he wrote. It is not a Windows console application, but a Windows GUI application. We, of course, have the source code, but he does not want it to be a console app. He wants it to remain a regular GUI application.

The thing is, he wants to be able to call it from PHP, passing it parameters, and have the application return information to the calling PHP script. I can easily call Windows console applications and read the output. I can even call VBS scripts and get the output from them as well.

But, we are stumped on how to get a regular Windows application to output data to a calling php script without resorting to writing the output to a text file and reading it from within php.

Has anybody been able to do this? If so, how?

Thanks in advance.

Amy


Editing to add: Apparently, the boss put this code in his application:

BOOL bConsole = AllocConsole();
 HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
 DWORD dwCharsWritten = 0;
 string sS3Path = sCommandLine.substr(sCommandLine.find("S3://") + 5);
 string sMessage = "S3 Path: " + sS3Path;

 BOOL bWritten = WriteConsole(hOutput, sMessage.c_str(), sMessage.size(), &dwCharsWritten, NULL);

But, php is not seeing the information that he is writing to this console. We’ve tried exec and shell_exec to no avail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:22:31+00:00Added an answer on May 12, 2026 at 12:22 pm

    Our final solution was for my boss to modify his Windows application. He was able to write to the console from within the app, and we could then read the output to that console.

    Amy

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My boss has asked for a page that will not change to have two
My boss is asking me to code a report that has the following components:
My boss has given me an assignment that I'm not sure is possible since
My boss has asked me to look into this question but I'm not sure
My boss has big dreams. He wants to write an application that runs on
I'm working on my first real WinForms application, and my boss has asked that
I'm not some kind of hax0r or so, but my boss has a website
My boss have given me assignment to find how a web based application developed
I have not had much experience with VBA, but I sometimes use it at
My boss has asked me to write a CMS for a web-application. A place

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.