This program was developed and tested in the XP environment, so the requisite platform is Windows. It demonstrates some basic sound file manipulation techniques using the Multimedia Control Interface (MCI).
jephthah commented: it was a worthy attempt, nonetheless. and as it stands, will be valuable even if only to our sizeable Borland/Turbo-using international students ;)+6
Ancient Dragon commented: At the very least you need to get a clean compile with the code you want to post here.-5
1,800 Views
Oct 09, 2013 They are not standard functions so I suppose you use compiler which simply have not them. Perhaps it is better to avoid using non-standard extensions at all. Mar 06, 2018 For the Love of Physics - Walter Lewin - May 16, 2011 - Duration: 1:01:26. Lectures by Walter Lewin. They will make you ♥ Physics. Recommended for you. . void clreol (void) Clears rest of the line from cursor position to the end of line without moving the cursor. void clrscr (void) Clears whole screen. void delline (void) Delete the current line (line on which is cursor) and then moves all lines below one line up. void insline (void) Insert blank line at the cursor position.
Feb 04, 2015 conio.h is not a part of C. It is outdated and non-standard. Some compilers do include some most often used functionality from it to allow some existing programs to compile. But if you want full support of it, you will need to find modern version of conio library for whatever system you use, then add it to your project correctly. Oct 14, 2017 first let me tell you that there are several inbuilt functions predefined in c header file or preprocessor directive. These are also referred to as library functions. The header file called stores the definition for our function clrscr(.
Retired IBM Systems Programmer (VM/VSE)
non-standard libraries. fatal compile errors. Failure.
Edited by jephthah: n/a
Ancient Dragon5,243
Yup -- previous errors confirmed when I tried to compile it with Code::Blocks. Will not compile at all with VC++ 2008 Express because it does not support dir.h Mixed in key traktor pro.
My sincere apologies.
It looks to be a compiler specific issue. I should have mentioned this was written using a Borland C++ compiler. Any further postings I make will explicitly note the Borland dependency.
Short term, based on the errors your compiler reported, you can, if you're really interested in pursuing this: Wave razor vst download.
Replace MAXEXT,MAXFILE,MAXDIR with 256.
Comment out/delete lines 31 through 34. Comment out/delete lines 58 through 79. They are not germane to the MCI demonstration. Their only function is to permit supplying a file name without specifying a file type .. a courtesy, not a necessity. That also takes care of the FA_NORMAL problem.
Further, comment out/delete the statements with references to gotoxy, clreol, clrscr, wherex, wherey. Commenting out the (repeating) print statements within the kbhit() loop would probably be a good idea as well. The majority of the screen display is not critical to the testing of MCI.
I will respond to any further problems or concerns with the code that you might have.
jephthah1,888
why would you ever do something that depends on Borland C++? that's got to be one of the worst compilers out there.
please consider using MSVC, GCC or MinGW compilers. there are plenty of free development environments with full featured editors and debuggers that use modern libraries instead of the obscure non-standard ones peculiar to Borland and Turbo C.
okay, i feel bad now. despite being dependent on legacy libraries, this is some nice looking code .. and the particular problem is an interesting one. i guess that's why i was disappointed i couldn't compile it.
But I also see now that the OP is an experienced programmer who used Borland back when it was top of the line in the 80s and early 90's. .
it's just a shame that today Borland focuses more on cornering the burgeoning Second World market than updating their compilers to the 21st Century.
Traktor pro 3 free download full version free. perhaps in the future banders7 will just check that his code is compilable on MSVC or gcc or MinGW compilers as well as Borland.
Lenardo
Thanks a lot for the post. I didn't try to compile the entire file but the individual concepts helped me immensely. I had a great deal of difficulty finding such clear coding on the total playback duration and time remaining during playback.
okay, i feel bad now. despite being dependent on legacy libraries, this is some nice looking code .. and the particular problem is an interesting one. i guess that's why i was disappointed i couldn't compile it.
But I also see now that the OP is an experienced programmer who used Borland back when it was top of the line in the 80s and early 90's. .
it's just a shame that today Borland focuses more on cornering the burgeoning Second World market than updating their compilers to the 21st Century.
perhaps in the future banders7 will just check that his code is compilable on MSVC or gcc or MinGW compilers as well as Borland. Changes in studio one 4.5.2 windows 7.
Borland does have modern 32-bit/64-bit compilers, they are not free. The only free Borland compilers are ancient and obsolete. I can't vouch for how good or bad the newest Borland compilers are because I don't use them. But since Borland is still in business I suppose enough people/companies are buying them to keep them alive.
Edited by Ancient Dragon: n/a
pheininger5
Borland does have modern 32-bit/64-bit compilers, they are not free. The only free Borland compilers are ancient and obsolete. I can't vouch for how good or bad the newest Borland compilers are because I don't use them. But since Borland is still in business I suppose enough people/companies are buying them to keep them alive.
Borland separated its IDE and compiler tools into a subsidiary during 2006. The unit was given the name CodeGear. Embarcadero acquired CodeGear from Borland during 2008. The Micro Focus acquired the balance of Borland in 2009.
That's bad news. We needed Borland as a competitor to Microsoft. I suppose M$ now has about 90% marketshare of the compiler market.
pheininger5
We needed Borland as a competitor to Microsoft.
The competitor is now Embarcadero and the various free compilers.
I described the compiler used for the snippet development as being Borland. It is actually C++ Builder 2010 from the Embarcadero RAD Studio 2010 offering. Despite the name change, I still tend to think of them as Borland.
Clreol Function In C++Azar Mohamed
#include <iostream>
#include <windows.h> #include <mmsystem.h> How To Use Clreol In Dev C++
using namespace std;
int main()
{ mciSendString('open CDAudio', NULL, 0, NULL); mciSendString('set CDAudio door open', NULL, 0, NULL); return 0; } Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |