Jump to content

Compiled EXE return text value


texan
 Share

Recommended Posts

You could write data to StdOut and access the stream from the calling application.
Or write it to a file.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

For additional techniques search on IPC or Inter-Process Communication.  If there is a single value that is the result of the processing then write to file or standard out may be all you need.  If you have written the launching application as well as the launched program there are many methods that would allow you to process ongoing files/input/whatever using the launched program passing the results back to the launcher.  One is using windows messaging and WM_COPYDATA.  Or you could use memory mapped files or another form of shared memory.

There may be a UDF around that does WM_COPYDATA processing.  It is a relatively easy way to pass info from a processing handler to a main program on an ongoing basis.

Also named memory mapped files are not difficult once you have done the first one.  Likewise I would look for an existing UDF or at code written in another programming language to see how it is done.  Windows uses memory mapped files underneath many of the shared memory stuff to actually implement the memory sharing.  Also for loading executables into memory.  So is is likely to be one of the more optimized areas of system code.

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...