|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Programing is Borland c++ builder?
Hi,
I just recently started learning how to program with C++. On my computer I have Borland c++ 5.02 loaded. With that I just type the program that is on the tutorial, and it runs in its own window. I am currently on a computer on campus trying to develop a program to start up an audio and video stream for two different applications. The program they have here is Borland C++ Builder 6. This is nothing like 5.02 that I work with. To me this language it uses doesn’t even look like c++. I work with a lot of video files, and play the audio separate from the video while working with them both. The video player I use is the old mplayer2. The audio editing program is Wavelab. I can’t find any programs that can start both of these up at the same time and I am trying to create a global control to play and stop both the audio on Wavelab, and the video on mplayer2 to keep them in sync? If anyone has any idea how to do this I would appreciate it. I know it would be easier to attempt this with VB but none of the computers here have it. Thanks, MarleyGPN |
|
#2
|
|||
|
|||
|
I have been playing around with it for a while. There is a program that comes with this called WinSight. By the looks of this this, I am assuming I use this to identify the buttons on the program and call them from c++. I got to the point where I am able to pinpoint the ID for the button, I dont know if its unique for each program, so that might not work. I dont exacly know what to do with it, but at least its a start.
|
|
#3
|
||||
|
||||
|
Actually, I think Builder is much easier to use than VB. I think, though, that what you want to do isn't really start up two separate programs and have them play at the same time, but actually have your program play the audio and video. The best thing would be to get a movie editing program and mix the two, but you can do this in Builder. The function you want to use for the audio is PlaySound( ). It's part of the Win32API, but you can call it straight from builder. For the video you want to use a media player control, and process the events of clicking play. It will take a bit of research in the help files, but you can do it. To help you out, I've included a program I wrote when I was learning builder. It doesn't use the media player component, but I think it does use PlaySound, and following this code will help you to understand how builder works.
__________________
Primary Forums: .Net Development, MS-SQL, C Programming VB.Net: It's not your father's Visual Basic. [Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers] |
|
#4
|
|||
|
|||
|
In VB
Hi
In VB it is very much easier Just add Micosoft Meadia Player Component and just assign, whichever file you want While coming to C++ Bilder The same procedure you have to follow Just the add the component for media player and then assign the reqiured file for playing audio / vdioe files MR |
|
#5
|
|||
|
|||
|
I have the same borland c++
If there id a problam you can ask me and maybe i'll
now ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Programing is Borland c++ builder? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|