Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » opening other programs
opening other programs [message #17574] Thu, 21 August 2008 11:15 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello


how can i make my program opens another program or opens a directory or a file

thx in advance
Re: opening other programs [message #17583 is a reply to message #17574] Thu, 21 August 2008 16:50 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You can try

void LaunchWebBrowser(const String& url);

or just plain system.

Mirek
Re: opening other programs [message #17595 is a reply to message #17583] Thu, 21 August 2008 20:10 Go to previous message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
Something I used for testing out this functionality... try some things out.
int ExternalPing(String addr){
  String ret;
  String cmdline = String().Cat() << "ping.exe -n 3" << addr;
  Cout() << "Starting Process: " << cmdline << "\n";
  One<SlaveProcess> sp = StartProcess(cmdline);
  while(sp->IsRunning()){
    Sleep(100);
    if(sp->Read(ret)){
        Cout() << ret;
    }
  }
  Cout() << "\n";
  return sp->GetExitCode();
}

[Updated on: Thu, 21 August 2008 20:11]

Report message to a moderator

Previous Topic: opening window in hidden mode
Next Topic: friend window
Goto Forum:
  


Current Time: Thu Apr 25 11:44:07 CEST 2024

Total time taken to generate the page: 0.02570 seconds