open file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowbell
    New Member
    • Sep 2008
    • 1

    #1

    open file

    I managed to open a file from C by using system("notepad eg.txt");
    However, I realise that the file only opens up but does not pop up if the user has other windows in use. Is there any way to make it always pop up no matter what the user is doing?
  • Jondlar
    New Member
    • Sep 2008
    • 9

    #2
    You shall have to use Windows API in order to do that.

    Try searching for these Windows API functions:

    Code:
    ShellExecuteEx()
    SetForegroundWindow()

    Comment

    Working...