Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running executable file (OLE) with arguments from pb executable file

Status
Not open for further replies.

dmazzini

Programmer
Jan 20, 2004
480
US
Hi guys

I want to be able to run an executable file with arguments from PB application.

I am doing on this way.(Command buton ok pb within executable file)

Code:
all_actions = "C:\Documents and Settings\dmazzini\Desktop\POWER-BUILDER-V11-WORK-SPACE\PB PROGRAMS\GUIPB\receiving_arg_from_pb.exe" + '  ' +  string( flag_dcn)  + '| ' + string(flag_coco) + '|' + string(action) + '|' + string( option)+  '|' +string(dropdown_value)  + '|' +string( dropdown_country) + '|' + string( trs_xlsfile) 

run (all_actions)
Code above works perfect.

Now I would like to insert this executable file (receiving_arg_from_pb.exe) within the PB.exe application.
So, instead call an executable file located in one directory, I want to have it built into the PB exe file.

Somthing like an OLE.

So, using ole_1.Activate() function, works, it triggers executable file, but I dont know how to activate an OLE passing arguments to it.

Any ideas?





dmazzini
GSM/UMTS System and Telecomm Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top