Posts

Contact Me

Hey contact me with the form on this page http://www.rajavanya.com/p/contact-me.html

Starting SDL !!!

Its been quite sometime since I started to study SDL with my friend. I am going to summarise somethings about SDL as a beginner. First let me tell the steps for configuring SDL with DevC++ IDE 4.9.9.2. After installing DevC++ IDE, download the SDL Library Download the SDL development library for Mingw32 http://libsdl.org/release/SDL-devel-1.2.12-mingw32.tar.gz (might be changed in the future) SDL Library official site is www.libsdl.org Place it in your C:\ Drive root. You can also place it whereever you want to store, but here I am going to make further explanation assuming that we are extracting the downloaded file in C:\. If you are extracting at a different location make changes in the path as necessary in the below example Extract the contents. It will create a folder called SDL-1.2.12. Rename the folder to 'SDL' for simplicity sake. Now extracted contents are in C:\SDL To verify check if there are folders by name bin, build-scripts, lib, include etc. under the path ...

How to begin game programming ??

I remember I asked my father how games were made when I was in UKG after I got my ATARI 2600, and has been always trying to find out since then. (Throughout my school life, I never owned a computer at home, only thing they taught in school was LOGO and very very limited amount of Basic. When I was in 9th or 10th standard I met this awesome thing called "Flash" which was Flash 5 then, and Flash CS4 now !) This is something that I took years to find out. The first thing I started was to program with Flash . Soon I realized Flash's capabilities.I agree that you can make decent games with flash too. But still how do these people program real AAA titles like Half Life, Quake 3 etc ?? Then I came to world of turbo C, started ambitiously later found its slow and screen was flickering, then came Java with double buffering , I got a tutorial about tile based games and realized this is how games like Super Mario was made. Used it in Java, got some smooth scrolling, but could...

Adding a printer in VB.NET

I took some time for me before I found out that API AddPrinter can be used to add printer whose driver is already installed. All I wanted to do was to add a Printer if its not present and the driver was built-in Windows XP itself. First I finished adding the printer in VC++ using MFC Application then I wanted to add it using VB.NET either using Declare Function or DllImport by wrapping it in a dll. Then i had to google for a long time when i last arrived at a code that really worked !!! Module Printer_Module 'declare the API in VB Private Declare Function AddPrinter Lib "winspool.drv" Alias "AddPrinterW" _ (ByVal pName As IntPtr, ByVal Level As Int32, _ &#60MarshalAs(UnmanagedType.LPStruct)&#62 ByVal pPrinter As PRINTER_INFO_2) As Int32 'http://www.vbforums.com/archive/index.php/t-263437.html 'still dont know why PRINTER_INFO_2 is Class instead of a Structure &#60StructLayout(LayoutKind.Sequential)&#62 _ Pu...

DEPLOYING VSTO SOLUTIONS

Image
This is for all people who know whats VSTO (Visual Studio Tools for office) and have developed apps using it and have not been able to deploy to end user systems. This is the most easy solution I have found to deploy document level solutions i.e. for a single excel or word file after a long time struggling. Though there are many ways to deploy VSTO solution for a document level and most handy one i have found so far has been - signing the assembly with a strong name then add entry in the .NET 2.0 security configuration. This is most handy because if you use URL then you cant shift the location of the folder which i needed in my case. Here are the steps. (NOTE: In the end users computer - You need to install feature .NET forms programmability in Office 2003 by using add/remove features in office 2003 installer and then install VSTOR.exe which can be found in the VSTO CD) (NOTE: In the developers computer you need the Visual Studio SDK if you need the Microsoft .NET Framework 2.0 Configu...