I downloaded the Coco2d-x game from the link on the downloads page of www.coco2d-x.org. now, how to get it working? - visual-c++

From this link Cocos2D_Game I downloaded the game and extracted the files.
Visual c++ express 2010 and marmalaid 5.2.1(from marmalaid.com) is installed (of-course on windows 7).
Now, which file is to be used to run the game. I tried almost all expected files. and when I press run, it returns an error "unable to start program... blah blah blah"
is there any special file to run the project ?
I didn't found *.mkb file in that project.
Please help me setting up this Cocos2d-x setup on my system for the first time.
And yeah, i just recalled on more thing.
I downloaded Cocos2d-x on my system. Extracted it. and kept it in my "d: drive".
Where shall the extract of Cocos2d-x be kept? Do I need specific path for that?

I can't shake the feeling that you haven't read any of the cocos2d-x documentation, in particular the Visual Studio user's guide. That's where you should start.

Related

How can I fix Microsoft Visual C++ 2017 X64 Minimum Runtime error during installing Redistributable packages (VC_redist.x64.exe, VC_redist.x86.exe)?

During installation I get "The feature you are trying to use is on a network resource that is unavailable" and prompt to specify some path to vc_runtimeMinimum_x64.msi. After providing some path to required file I get error states that this file doesn't match required version Minimum Runtime 14.14.26405.
I finally found the solution reading this question: Install vcredist_x64 with VS2017 installer project
I realized that specific VC_Redist.x64.exe files could be downloaded by links like https://aka.ms/vs/15/release/26405.00/VC_Redist.x64.exe, where 26405.00 is exactly the version I was required to fix. Note, that you need version from error text after clicking OK, not from window title.
And the last point is that this exe must be executed from cmd with argument /repair to help me with this issue. Regular execution by double click made no effect.
I found the solution elsewhere. It said to
Fix problems that block programs from being installed or removed
https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed
download troubleshooter button on the link.
Run it - choose option - have problem with installing - it lists programs - choose the missing / problematic visual c++ runtimes in the list
it will run and get fixed.
Repeat for each visual c++ you having problems with. I ran the program multiple times.
I have to thank this comment section for helping me with this problem, since I have not been able to work more efficently with my school, since I din't know what and if a single file somewhere deep down in the computer had to be deleted for this program to work.

Compiling pascal program in Visual Studio Code for Linux

Recently, I switched my OS to Ubuntu. I just started with collage and I have to learn pascal for my finals. But a problem occurred.
I installed Visual Studio Code and Pascal extension for it, but I am unable to run even a simple Hello World code. I wrote code, it saved automatically as .pas, but when I enter debug & run option in VSC it displays a message that says 'Open a file which can be debugged or run.', followed by 'debug' and 'run' buttons that I am unable to click and another message that says 'To further configure Debug and Run create a launch.json file.'
I am not even sure am I supposed to post questions such as this one on stackoverflow, but I sincerelly hope that someone could give me a hint on what to do. Solve this within Visual Studio Code or switch to another IDE (and which one would you recommend for Linux user) and pretend that nothing happened?
Thanks in advance.
I know this isn't an answer to "how to debug with pascal with vscode" but, perhaps you would find it easier to just use FPC / Lazarus (IDE) to do your work. While it doesn't have a dark theme, contrary to popular belief, that's not necessary to program.
The IDE is feature packed and allows for full code completion, debugging, etc... (everything you really need to do the work for school).
Additionally, you can use this open source tool to install everything you need for your platform in just a few button clicks (also allows for installing common library packages)
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases
download release for your OS
under "FPC Version" & "Lazarus Version" select trunkgit (or stable for an older version)
click the "Install/Update FPC + Lazarus" button
Have you Installed Pascal extension which is available for code to smoothly run pascal code.
If you haven't then try installing this extension using,
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
ext install alefragnani.pascal
You can always check,
https://marketplace.visualstudio.com/items?itemName=alefragnani.pascal
to install and configure pascal in vscode.
I will direct you to the debugging page from the Visual Studio Code documentation that details how to use the debugger and configure a launch.json file. VSCode is a generic IDE so you need to give it some information about your project before it knows how to run the debugger. This is what launch.json is for.
If I could make a suggestion. When you're learning how to program, it's best to start with the basics. Write a small program in a text editor (VSCode is fine, or Vim, or Nano, or Notepad, or whatever). Save the file. Compile and run the program on the command line.
Once you put an IDE in the mix, you have to learn how to use that as well. If you're stuck on both parts, it can be hard to make progress. That said, it's good to learn how to use the IDE, and you should spend some time reading the documentation and working through some of the examples. It takes some time, but it will pay you back a thousand times when you can work more quickly.

Android Studio wrong file executed

I am beginning to learn developing apps on android studio through android training website. I followed the steps and created an empty project. However I included c++ support while creating project. So when i ran the project, the output is "Hello from c++" from native-lib.cpp instead of "Hello World" in activity_main.xml.
My question is:
How do I get it to execute activity_main.xml and print hello world rather than native-lib.cpp?
Answered here:
If you're just changing the XML, but haven't changed the source code for the new project, then your XML is going to be overridden by the line
tv.setText(stringFromJNI());
Remove that line (or set your new text there instead) to fix your issue. It's caused by the fact that the XML is the starting point for your view, so any and all changes to that view during runtime will be the ones that you're likely to see.

javax.microedition.io.file does not exist in BlueJ

Trying j2me app development. I got a simple Hello to work, and a simple TextBox user as well. But when I tried to compile code for a file browser I got "javax.microedition.io.file does not exist".
The WTK according to the Sun website is supposed to include JSR75. And there's a camera demo .java file that uses it.
I've looked in various places (the WTK, BlueJ, even Netbeans) for menu options to turn it on. Nothing. And a search of this forum turned up exactly ONE message and it pertains to another IDE, and it seemed to work for him in BlueJ.
So what am I missing and how do I get it?
In NetBeans, you go to Project Properties (right-click the project, and select Properties). Then click "Platform" and mark "File Connection and PIM Optional Packages 1.0".
On a whim I did a search for JSR75 jar download and found a few zipped jar files that seemed to contain the file classes. I unzipped one of them and put it in the Libraries/Userlib directory of BlueJ; and now I seem to have the File... Classes. Reading and writing seem to work in the emulator.
I'll take another look at Netbeans when I get a chance.

Firebreath : Getting these errors while building Firebreath with example projects

I'm new to this plugin development. so bear with me.
I have downloaded the FireBreath project. It was wonderful. When i build it as the way they said, I got following three errors.
I have built it using visual studio 2005, I executed the following line in command prompt
"prep2005.cmd examples"
The Errors are,
1. 'SwitchToThread': identifier not found d:\Projects\firebreath-FireBreath-b73d799\src\libs\log4cplus\src\threads.cxx 92
2. Cannot open include file: 'vfwmsgs.h': No such file or directory d:\Projects\firebreath-FireBreath-b73d799\examples\BasicMediaPlayer\Win\error_mapping.cpp 18
3. Cannot open include file: 'dshow.h': No such file or directory d:\Projects\firebreath-FireBreath-b73d799\examples\BasicMediaPlayer\Win\MediaPlayerWin.cpp 24
Whether am i doing right. Am i missed something ?
FireBreath comes with two samples, namely BasicMediaPlayer and FBTestPlugin. When you type prep2005.cmd examples, it builds visual studio project for both the plugins. The BasicMediaPlayer sample uses DirectX to play specified videos in the browser. The two headers which are not found are the directx header. So it seems like those headers are not present on the default location on your system, so firebreath generated project is not able to find it. Check for their exact location and change it in the generated project. It will work. If you build only FBTestPlugin, it will build successfully.

Resources