Thread: Opening Video file from Borland C++

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    21

    Opening Video file from Borland C++

    Hello,

    Im trying to have a video file open when i click on a button. I can get it working by adding an .AVi file, but the file is so small you can barely see it or it says cannot open avi. The other thing i tried was system("1.avi") which opens the file in media player but only seems to work on the computer which it was compiled even though the avi is stored in the same directory as the exe.

    Anybody any ideas?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Use a fully qualified path when you call system() - you can't assume that the current working directory is the same as the one with the avi in it.

    gg

  3. #3
    Registered User
    Join Date
    Dec 2002
    Posts
    21
    Thanx 4 replying m8, got it working by using the media player from within the program rather than externally.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM