How can I open my project in DevC++ to edit its code? - c++

Hi there I am a beginner and I am learning C++ using IDE DevC++
Till now I was just creating simple files by choosing the source file in the upleft corner.
And it was easy to run them and edit them.
But now, for the first time, I have created a project in it. It was a graphics project; it ran well
But now I don't know how to open its code, so I can edit it and make it better.
Hope the problem is clear
Help needed.

Related

C++ Setup in Visual Studio Code fails to run

I just downloaded VSC in order to start learning C++. Previously I had just used Notepad++ for web design and Python IDE for Python, but I decided to move onto Visual Studio Code for a more sophisticated code editor.
However, when trying to run a basic program, I don't have the option to run in the first place. This picture is what's supposed to come up when you right-click on the text area (from multiple YouTube tutorials):
However, this is what comes up on my screen.
Additionally, there is no "run" button on the top-right of the screen like the tutorials show.
My folders regarding VSC in File Explorer are quite simple. I have a folder for my .cpp code, and MinGW as a compiler. My build is Windows 10.
Obviously, this depends from person to person, but is there any key way this situation can be resolved? Thank you in advance.

How can I get this mouse to joystick program to work?

I've recently bought Tie-Fighter Special Edition on Steam but have found that it requires a joystick to play. I have been looking for a solution to this, and have found this code which supposedly converts mouse input to joystick input. However, I've been having trouble getting it to work.
I do not have any experience with C++ or Qt Creator, meaning that I really do not know what I need to do to get this to work. I suspect that it may have been written using an older version of Qt.
When I try to compile the code in Visual Studio, I get several errors saying that it cannot open any of the source files.
cannot open source file "QApplication"
cannot open source file "QMainWindow"
cannot open source file "QDateTime"
and so on...
If I try to open and build the code in Qt Creator, I get the error File MakeFile doesn't exist
I would really appreciate any help with this, as I'm stumped for what I need to change to get the code to work. Thank you.
This has a version already compiled here
https://github.com/raptorswing/MouseToJoystick/releases

visual studio code showing wrong autocomplete suggestions in c++

I am trying to learn SDL in C++ So auto-complete is very essential for me.VS code was working fine with SFML but due to android problems I started learning SDL and now auto-completions for SDL is not working correctly . It always suggest some wrong members ,even If I didn't include any library . I don't have enough experience with VS . I came to VS from neovim only for auto completions which not working properly :(
I had tried restring ,updating and deleting .vscode dir but nothing happened
Hover your cursor on the header file mentioned in the source code
You'll notice a red/green swiggly underline
A light bulb icon appears, click on it
select the option called "edit includepath setting"
It takes you to a new "c_cpp_properties.json"
In this json file, under your platform, add all the paths to the headerfiles
After doing this, most of the unwanted intellisense results disappear. Only releavent ones show up the top.
VS code is a very good tool which comes with source control features. Add C++ extension and a debugger and you are good to go.

Eclipse not building properly

Okay so basically I'm working on recursion. And I recently switched from a mac to a PC, so I'm now using eclipse instead of XCode for programming c++. now this has happened to me a couple times, and I still have no idea why its doing it. When this happens I do not get an error code, I've searched far and wide for this solution but haven't found one yet, so i'm hoping you guys could help. So everything was going great (almost finished), but i realized a bug, so I fix it, then I save it, then I build it, run it, then it doesn't build properly (i'm assuming), like it didn't build my new code, it just rebuilt my old code and ran that, im using MinGW, I've also tried to import my old code via copy and paste, but it did the same thing, please help.
*let me know if I left anything out that might be needed to know
**update on my project file it does have a error sign on it, but there isn't one in my code
***update update I looked through the errors and found that it doesnt have permission to open output file "recursive.exe" (my project name)
OK solution: run eclipse as admin

CodeBlocks 13.12 adding sound

Hello I just started learning c++, and my teacher wants us to create a game for our final exam.
I am using CodeBlocks 13.12 and can't seem to be able to add any game sound. I just need to play a simple .wav file if you guys could show me how that would look I'd greatly appreciate it.
The teacher made adding sound extra credit because he didn't actually show us how to do that. I have no clue as to how to do it so please show if I have to change anything in the settings.
I haven't worked much with audio files either, but a quick search turned up the following links:
StackOverflow: Playing a wav file
CodeProject: Audio files in c++
It looks that (for Windows at least) you can use
PlaySound
Check out the Windows documentation for PlaySound and make sure to include windows.h!
#include <windows.h>
Note: I should expand on AdamS's comment. CodeBlocks is your Integrated Development Environment (IDE). Your question is specific to the language C++ but not to the IDE CodeBlocks. If your code is correct but you still can't hear the sounds, then it could be an issue with your IDE or your computer.