DirectX with c++ in web development - c++

I wonder if it possible to make a game by c++ with directx(in GFX) so that it could be put in my web (php , asp.net, java or other I don't care about the web language or technology, you chose one for me) and be played online or I have to change something directx or C++.
if it possible tell me how?
thnx in advance

If you mean browser based, I'm not sure it's possible with C++. You might want to look into webGL.
If you're feeling very adventurous, I am aware of an open source project that is essentially a .NET to JS compiler. You can check it out on github here
If you mean "online" as in a MMO type of game, or a game that is played over a network, (but not in a browser), then obviously it is quite possible, I don't know the specific libraries you'd use though.

Related

Is it possible to make mods in C++ for the bedrock edition on a Windows 10 PC?

(thread title) bedrock minecraft more recognizable as "Windows 10 Edition" Minecraft, is it possible to create a sub category UI menu similar to that in Java minecraft where it says "mods" but in bedrock? and to add mods you make a mods folder that adds the mods coded in C++ (which the language bedrock/windows 10 MC is coded in)?
although this has been answered by #Kosaro, I just wanna add that you can create plugins to use on a PocketMine server. this is mainly written in YAML and PHP, so its not really what your looking for exactly but it a bit more open than just the addons that Minecraft allows you to create. plugins like this are what make things like slapping a NPC on a server like Mineplex possible, or an economy system on a factions server. although this is all dependent on whether you have a pc to host the server, and if your willing to port forward to play with others
It is possible through Blocklauncher. And these mods are called native Mods. It involves disassembling a file in Minecraft apk and using the function calls to call our own function. It is actually so complex. I only found two places to learn.
Tutorials by artus9033 (I've never used these Tutorials)
Github page by byteandahalf (Note: Page 9 is WIP)
Blocklauncher also uses javascript as a bridge between C++ and Minecraft, but it only has very few functionalities compared to C++. Add-ons are also good but have very fewer functionalities than javascript.
Hopes it helps you
Edit1: Blocklauncher is dead I don't know it before. It will work for older versions.
Edit2: There is another app inspired by Blocklauncher which you may like
https://github.com/TripleCamera. I don't know how to install it, but he made it. Blocklauncher scripts will not work (I guess). Blocklauncher works for version 12 and below of Minecraft
No, Minecraft Bedrock edition (aka Windows 10 edition) does not support C++ mods. The only type of mod that Bedrock edition supports are "add-ons", which are either resource packs (which change textures, models, sounds, animations, etc) or behavior packs (which change how mobs behave).
You are able to modify the UI using resource packs, here is an example from the official wiki: https://minecraft.gamepedia.com/Tutorials/Bedrock_Edition_creator_guidelines#UI
You can find more information and tutorials on the official reference page: https://minecraft.gamepedia.com/Add-on
Yes it is possible but it would be very involved and I’m not sure if this would be what the question really pertains to. The way I’ve seen it done is by a program (modding client) injecting itself into the Minecraft process. The injection resembles a virus’s methodology somewhat and the source code for the hacking/modding program was mostly cpp. Look up horion hacked client github. The client seems to be dead now though.

How to get started editing the source for Chromium?

I am a somewhat novice programmer (by which I mean I am proficient in many programming languages, but have never taken formal classes) and would like to heavily mod the Chromium web browser for my own purposes. I would need to change the UI significantly, as well as make somewhat major changes to the V8 embedded javascript engine, and I would like to know where I can start. I guess what I really need to know is:
Are there certain programming conventions I should observe to better understand how Chromium works?
Are there any guides/tutorials on how the file system used for the source works?
Are there any guides/tutorials on how to edit/interpret the Chromium source code specifically?
Should I try to mod Chromium, or should I try to build my own web browser using WebKit and V8?
I am also considering basing by browser on FireFox. Would that be easier to get started with? Since I plan on learning as I work, I would like to be able to understand the
Any help would be greatly appreciated, as well as any gems of wisdom from your own, personal experiences.
P.S.: I'm running Ubuntu 11.10, if that makes a difference at all.
The Chromium.org site has some resources :
General http://www.chromium.org/Home
Building on Ubuntu : http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
Conventions : http://www.chromium.org/developers/coding-style
Contributing : http://www.chromium.org/developers/contributing-code
(Sounds RTFM-y, I know, sorry)
That said, you're probably better of tweaking an existing browser codebase rather than creating one "from scratch" - a task which I would assume to be daunting at least.

Can I make a game using c++ that will run on the web?

There is some libraries that lets you run C++. So, it is it possible to run a game that uses directx full mode screen?
Google is developing a tool to allow this kind of thing via Chrome. It is called Chrome Native Client, or NACL for short. http://blog.chromium.org/2010/05/sneak-peek-at-native-client-sdk.html
In general, no. Most online games are written with Javascript, Flash, the newly hatchedd HTML5 and similar technologies. Perhaps C++ integration is possible on some level, but you definitely cannot write a browser-hosted game purely and entirely in C++.
it could also be done with an ActiveX control. ActiveX only works in IE. there are Netscape plugins that work in other browsers. so make a solution that contains both. you need a book on ActiveX/COM/OLE. Better yet, take a class if you can find one, you will learn far more, because COM is not an easy subject to just read about and then really do - versioning is a big problem.
nope, not supported in firefox. but read this: http://www.google.com/chrome/intl/en/webmasters-faq.html#activex
some people may have activex controls disabled. if this is the case, your game will not run. you will have to tell the user that they will need to change their security settings in IE. you can get feedback from the object element in javascript as to whether or not the activex loaded. there is code out there for that.
http://msdn.microsoft.com/en-us/library/7sw4ddf8%28v=vs.85%29.aspx
examples are all over the internet.

Writing my first blackberry app

I am contemplating writing my first BlackBerry app. I am fundamentally a C/C++ programmer, not Java. Can anyone provide some guidelines on the quickest route, i.e. shallowest learning curve, to writing a BlackBerry app?
Any resources/links would be useful.
As an aside:
In an ideal world, I would like to write once and deploy for both BlackBerry and the iPhone, but since I am targetting largely business people, I think BlackBerry should be my target - right?
Is it possible to write once and deploy on BOTH iPhone and BlackBerry?
C++ and C programmers can easily jump into Java and Actionscript.
I would suggest you to write application in Flash using actionsscript.
As you are a beginner, AS3 will be a good start as it provides easy constructs and API for UI programming.
Moreover, doing AS3, you can easily port it over to Android too.
If you are very particular to develop for both Blackberry and iPhone, then try using web technologies. Both phones support web technologies and create web apps.
These apps are also very easy to create and can even run on Adnroid with minor changes. My suggestion is to use your progrmming basics and try to venture into all possible languages to get a breadth.
Skyeagle,
With a C/C++ background, I'd suggest you start on the iPhone. Not only will you be more comfortable with the language but it's only a limited range of devices to worry about - in comparison with the BlackBerry market which varies vastly in form factor and ability (and is of course in Java).
However, if you were sure about doing BlackBerry, the main BlackBerry site is probably the place to start, along with the support forum - oh, and StackOverflow :) The JDK comes with plenty of examples which will cover the basics too.
I also suggest you do a little searching on here - getting started with BlackBerry development has already been covered a few times and probably hasn't changed that much over the last little while.
Final note - if you want to be on the bleeding edge of development, what about looking to develop for the PlayBook, soon to be RIM's latest offering?
Stuart
Depends on your requirements but you could use something like mosync

How does one port c++ functions to the internet?

I have a few years experience programming c++ and a little less then that using Qt. I built a data mining software using Qt and I want to make it available online. Unfortunately, I know close to nothing about web programming. Firstly, how easy or hard is this to do and what is the best way to go about it?
Supposing I am looking to hire someone to make me a secure, long-term, extensible, website for an online software service, what skill set should I be looking for?
Edit:
I want to make my question a little more specific:
How can I take a bunch of working c++ functions and port the code so I can run it server side on a website?
Once this is done, would it be easy to make changes to the c++ code and have the algorithm automatically update on the site?
What technologies would be involved? Are there any cloud computing platforms that would be good for something like this?
#Niklaos-what does it mean to build a library and how does one do that?
You might want to have a look at Wt[1]. Its a C++ web framework which is programmed more or less like a desktop GUI application. One of the use cases quoted is to bring legacy apps into the web.
[1] http://www.webtoolkit.eu
Port the functions to Java, easily done from C++, you can even find some tools to help - don't trust them implicitly but they could provide a boost.
See longer answer below.
Wrap them in a web application, and deploy them on Google App-Engine.
Java version of a library would be a jar file.
If you really want to be able to update the algorithm implementation dynamically, then you could implement them in Groovy, and upload changes through a form on your webapp, either as files or as a big text block, need to consider version control.
The effort/skillset involved to perform the task depends on how your wrote your code. If it is in a self-contained library, and has a clean (re-entrant, thread safe) API, you could probably hire a web developer (html/php/asp etc) to write the UI interface to the library for a relatively small cost. The skills required would be dependant on the technologies you wanted to use. For Windows development I would suggest C#/ASP. The applicant would require knowledge of interfacing with native libraries from a managed language. This is assuming that you dont mind the costs of Windows deployment for your application.
On the otherhand, if the library is complex or needs to be re-written to support the extensibility you are looking for, asking here will not get you much.
BTW: here is a great article on Marshalling if you chose to implement using C#/ASP
http://msdn.microsoft.com/en-us/magazine/cc164193.aspx
First, DO NOT USE PHP :D
I used it for some projects (the last one with symphony framework) and i almost shoot my self !
If you are very familiar with C++, ASP .NET could be a good solution because if you like C++ you are going to love C#.
Any ways, I personally use Ruby on Rails for 6 months now and I LOVE IT. I won't write you a book here but the framework is pure gold !
The only problem is that Ruby is a very special language. You will probably be a bit lost a the beginning. But as every one you will learn to love it.
But that was only for the server side. Indeed, there 3 technologies you won't be able to avoid if you want to start to develop web applications.
HTML, CSS and JavaScript are presents every where. This is why i'm thinking you should start by HTML and CSS then JavaScript (with jQuery).
When you've got some basics with these 3 technologies you should be able to choose the server side language.
But you've got to tell you one thing, it's not going to be easy !
PS : Ruby on Rails uses HAML and SASS. These 2 languages replaces HTML and CSS you should have a look at them quickly because they are awesome.