Posts

Showing posts from 2013

C++ and HTML as UI?

Image
Ever Since I saw the post Raman Sharma: Building Metro Style Apps with C++ and JavaScript  I wanted to create one such Hybrid app, after seeing the disaster the Win32 Resources look with it's pixelated resource file and Headache of a UI maintanence, I wondered if such an hybrid app could resolve some of those issues? The blog actually mentioned many motivations as to why we want to have such an hybrid app and the following stood out the strengths JavaScript Web Dynamic and Responsive UI C++ CPU/ GPU access and usage Image/Audio/Video Processing Compression/Encryption Prasers useful in Statics/Finance He also mentioned about the advantages of such Hybrid Apps but for me the following stood out Code Reusability Reuse of Complex and powerful C++ Native code and make a Dynamic HTML UI Creating one such interoperability between the HTML and Javascript can be explained by following figure we need to create a C++ WinRT Layer for an existing C++ code  ...

Introduction to DirectX and Creating the Main Game Loop using DirectX11

Image
So when I first began developing a game I found DirectX easier compared to OpenGL be it online tutorials or Support that I got online mostly from Microsoft so what is DirectX then ? Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with Direct, such as Direct3D, DirectDraw, DirectMusic, DirectPlay, DirectSound, and so forth. The name DirectX was coined as a shorthand term for all of these APIs (the X standing in for the particular API names) and soon became the name of the collection. When Microsoft later set out to develop a gaming console, the X was used as the basis of the name Xbox to indicate that the console was based on DirectX technology. The X initial has been carried forward in the naming of APIs designed for the Xbox such as XInput and the Cross-platform Audio Creation Tool (XACT), whil...

The most awesome Video Games and Game-play's I have played

I would like to discuss some of the awesome games and game-plays that I have played. Action Action games emphasize physical challenges that require eye-hand coordination and motor skill to overcome.  Platform games Platform games (or platformers) are set in a vertical or three-dimensional (3D) environment. Players guide a character through obstacles, jumping on platforms and battling enemies in order to advance. They often involve unrealistic physics and special movement abilities. Super Mario Bros. was one of the best Shooter games In shooter games (or simply shooters), players use ranged weapons to participate in the action, which takes place at a distance. First-person shooters are played within the protagonist's perspective; they often include a heads-up display displaying key information such as the current health of the protagonist. In third-person shooters , the protagonist's body can be seen fully; the environment is rendered from a distance.Some shooters inc...

To create an Excel spreadsheet with COM interop

I remember this time I was working on creating excel report for the attendance at this time in last year and it was most fun to create things I have worked on we can convert from the data-set to excel sheets to download in an easy asp.net web page it was tricky because we have to create an excel sheet in Util-Layer(where all our utility logic stays) and call save as from the front end C# using System; using System.Reflection; using Microsoft.Office.Interop.Excel; public class CreateExcelWorksheet { Workbook void BuildExcelWorkbook() { Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); if (xlApp == null ) { Console.WriteLine( "EXCEL could not be started. Check that your office installation and project references are correct." ); return null ; } xlApp.Visible = true ; Workbook wb = xlApp.Workbooks.Add(XlWBATemplate.xlWBAT...

Resource Script (.rc) Or Extensible Markup Language (.XAML)

Image
The other day I was complaining to one of my architects as to why I don't like the look of our application and why it was difficult to work with resource script (.rc) files . I also remembered two parts in this conversation one thing was why resource script inevitably became standard for all our MFC win32 application in our organization and why it was difficult to switch technologies (go to my previous blog where I complained about resolution and  other extra testing considerations I missed  in the following blog  ui-and-localization-important-things ) before we go in detail I want to give some details on how we work in resource script and it's workings and on XAML and ho we can work on things The term "resource file" can refer to a number of file types, including: The resource script (.rc) file of a program. A resource template (.rct) file. An individual resource existing as a stand-alone file, such as a bitmap, icon, or cursor file that is referred to from...

Premium Freemium and Subscriptions - Games and Apps - A case study of differing App monitizations

Image
I was developing a simple website in 2012 during my transition from old company to new company as part of problem definition and analysis I took the following notes, I were discussing the details with one of my friends and hence one might find his names as well Problem : Many House owners in Banglore list houses for rent in Housing.com or Sulekha.com or any other websites but there's no mention about services near the house such as Restaurant, Laundry based on distances relative to house   Solution : Portal similar to Airbnb.com but instead of the listings of the house we will be listing all the services associated with the Home Company's Smart Application Objective : To create smart internet or Mobile Application that helps the person to avail all the personal and household services associated with the house The household or personal service may include several of the following which might be tough for a new person to find so we will list them all those in the...

Tutorial: Creating my own first Windows Store app using C++ and My Experiences

Image
My Objectives So Ever since I started working in new office in C++ I wanted to try something different than MFC applications as a matter of fact I don't like the way it looks so here's a tutorial for myself in regards to that. This article is one such experimentation and my observation in that regards. Introduction A Windows Windows Store app is tailored for the user experience that's introduced in Windows 8, I found a great article regarding this in the following link http://msdn.microsoft.com/en-us/library/windows/apps/hh465427.aspx and the complete app in http://go.microsoft.com/fwlink/p/?LinkId=258676 Before I dig into code, I want to understand some of the features and design principles that I can use to build a Windows Store app with C++.I also wanted to know how Microsoft Visual Studio Express 2012 for Windows 8 supports the design and development work because mostly I have been working on Visual Studio 2008. And it's important I understand how and when ...