Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Test exported function from EXE in another Hosted EXE


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Feb 21, 2017 9:00 AM Last Post By: Remy Lebeau (Te...
Ahmed Sayed

Posts: 173
Registered: 8/9/07
Test exported function from EXE in another Hosted EXE  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 20, 2017 12:46 AM
Hi all,

I have an application that I need to test a with another application.
The app that has the function needs to be exported is App2 and
contains a function that needs to be called from App1

I am testing this by making App1 as the "Host application" in the
Run->Parameters. App1 checks for ParamCount() and load the 1st
param as string path to the second "App2" as a module (like a normal dll)
and then calls try to call the exported function by App2.

The whole process fails because App1 never get started instead of App2

So, my question how can prevent the original EXE from running "App2"
and make the host Application to run instead "App1". Using Run->Parameters

Appreciate any help.
Thanks in advance

--
The limits of my language mean the limits of my world
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Test exported function from EXE in another Hosted EXE  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 21, 2017 9:00 AM   in response to: Ahmed Sayed in response to: Ahmed Sayed
Ahmed wrote:

I have an application that I need to test a with another application.
The app that has the function needs to be exported is App2 and
contains a function that needs to be called from App1

Although functions can be exported from EXEs, they are generally not.
There are many other ways for apps to communicate with each other.

I am testing this by making App1 as the "Host application" in the
Run->Parameters. App1 checks for ParamCount() and load the 1st
param as string path to the second "App2" as a module (like a normal
dll)

It does not make sense for an EXE to be a host of another EXE.

and then calls try to call the exported function by App2.
The whole process fails because App1 never get started instead of App2

Right, because you can't have an EXE be the host of another EXE.

So, my question how can prevent the original EXE from running "App2"
and make the host Application to run instead "App1". Using
Run->Parameters

You can't.

Why not just load App2 normally and let it test itself? Why do you need
App1 at all?

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02