![]() |
Free Patriotic Movement Tone In C++
In my free time, I coded this small program that generates the FPM tone using the beep() function. This is the code:
Code:
//Free Patriotic Movement Tone By Edgard ChammasNote: The compiled executable file is here <> in case you don't have a compiler... |
Re: Free Patriotic Movement Tone In C++
sorry because I dont know in the computer stuff, so what do we do in order to get the tone for that?
|
Re: Free Patriotic Movement Tone In C++
Quote:
This is the link: http://www.4shared.com/file/80106952/f080bb5f/FPM.html Edit: You can put the FPM.exe in a static place and make it run every time you logon to your user by this batch file: Code:
@ECHO OFF |
Re: Free Patriotic Movement Tone In C++
It Didn't Work For Me, I Downloaded The Compiled File You Uploaded, And I Hear Nothing :p
I Am Using Visual C++ 2008, You Have To Add #include <stdafx.h> As A PreCompiler Library, I Don't Know Why Though. And The: int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) Didn't Work For Me, I Get This: Code:
I Tried The int main(void), It Worked. Any Idea? |
Re: Free Patriotic Movement Tone In C++
I'm using Visual C++ 2005, and i got this :
Code:
1>Compiling... |
Re: Free Patriotic Movement Tone In C++
@Tawa
This is a windows 32-bit application and not a console application To solve your problem, you either have to make a win32 project and put the code in, OR JUST create the cpp file and then in microsoft visual c++ go: Project > Settings In the C/C++ tab change the preprocessor definitions from WIN32,_DEBUG,_CONSOLE,_MBCS to WIN32, _DEBUG,_WINDOWS In the Link tab change /subsystem:console in the project options to /subsystem:windows And this will solve the problem. @Malek You have to download and install the SDK platform. It is not included by default in VC2005. That's why the compiler cannot find that header file. Edit: If you want, download windows.h from the internet and put it in the libraries directory. By the way, I'm using visual c++ 6.0 :p |
Re: Free Patriotic Movement Tone In C++
Lol, I Did Man, Nothing Shows Up, And I Hear Nothing :p
|
Re: Free Patriotic Movement Tone In C++
1- I'm glad to hear that the code is compiled with you! :p
2- nothing is supposed to show up unless you do it like you did it before (console mode, with int main() instead of int WINAPI WinMain... ) 3- Now we come to the more interesting part that your PC "hane" and does not beep :p / well it is either your PC's internal speaker is damaged or simply your ears are damaged :p The beep sound volume depends on each PC... |
Re: Free Patriotic Movement Tone In C++
I Think My Laptop Doesn't Have An Internal Speaker.
And I Don't Think It's Damaged :p Cause I Never Heard A Beep From An Internal Speaker. And The Laptop Is Still Pretty New. |
| All times are GMT +1. The time now is 04:04 AM. |
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger