I have a problem, first the function:
Problem is: there is a delay when the sound keyboard.wav plays that forced me to use "Sleep();". Is there anyway to preload the sound files so that when called it will play immediately and how to do it? Been googling all day with no success.
void chatLike(string stri)
//function intends to output with a chat like effect
...... int strLength;
PlaySound(TEXT("Sounds\\keyboard.wav"), NULL, SND_ASYNC | SND_LOOP);
for(int x=0 ; x<strLength ; x++)
cout << stri[x];
PlaySound(NULL, NULL, SND_LOOP);
also is it possible to add a background image to a console program? Is it possible to connect and access the net retrieve search and retrieve information through the net? Is font change possible? I have made a loadscreen function: is it possible to display the load screen all the while program is processing something?
sorry for asking so many questions, it's just that I really want to improve my program and its kind of frustrating to google with no avail.
here's my program so far. Vocabulary Storage.exe
any comments suggestions and criticism will do XD.
PlaySound() is an ugly way to play sounds for lazy programmers.
Windows Multimedia (Windows)
Everything is possible including changing of console's background, even though it misses the point of consoles. If you want to have a graphical console, create your own GUI.
I still don't know how to create my own GUI. So how do I play sounds without using PlaySound() and how do I change the background? Sorry kinda of noobish here, I don't even know how to use classes.
There is no trivial way to change background of console, but it certainly would be possible somehow. If you want nice interface - start learning GUI. There are many free libraries out of there.
And did you bother to check the link I gave you? Google is your friend.
Yes I checked the links but I couldn't understand anything @_@.