Skip to main content

Posts

Android Architecture !!!!

Hello Folks !!!! I am back this time for a change with Non Windows Mobile Topic ( What ??????/ Are you going to ditch Windows Mobile ????? ). No No No .... Windows Mobile is still my favourite subject for many reasons ( Actually only one reason .... I am very comfortable with WinCE architecture and exposed to thsi for many years :) ). Ever since Google took over Android and announced release fo Google Phone, Like many i am also interested to know how this thing is going to take shape. Grabbed my attention to explore what is there in Andriod. I am going to publish series of Posts talks about Andriod Basics. Let us start !!!!!!!!!! What is Andriod ============= Let me oversimplfy the defination here .... Android is a mobile operating system running on the Linux kernel. In other words Andriod is Platform for Embedded , Cosumer Electronic and Smaptphone devices. Andriod is Platform runs of Linux kernel 2.6. For those who are faimiliar with Widnows Mobile, Windwos Mobile is platform runs o...

Windows Mobile 6.5 – What's new for developers ?

Hello Folks .... i am back with new article. As title suggest its about Windows Mobile 6.5 and what's in it for developers ? As you are already aware there was lot of buzz about Windows Mobile 6.5 look & feel and its hone comb UI design. although i am not excited about new look & feel ( Can't stop comparing WM with iPhone :) ) but it has its own improvements and i am not going to talk about them.  I am going to talk about about what is new for developers.  Cloud computing is Industry's BUZZ word and it is the main addition to Windows Mobile development. Having said that, it is not new thing but Microsoft have added "Windows Mobile Widget" to IDE. That makes developer life easy while developing Web based application / cloud computing application. until today developers have basically two options to create applications for Windows Phones: a)       Native Code (primarily in C/C++) b)       Managed code (using the .net co...

Bring MFC dialog window to Top of all Windows

Hello Folks !!!! Lately i was developing a Windows CE Auto Version check application and i need to warn User before i trigger OS upgrade so Auto close warning dialog is expected to be top-most window. Following code does the magic. All you need to do is, place this code in OnInitDialog or whereever you want. CWnd* MainWnd= AfxGetMainWnd();   MainWnd->SetWindowPos (&MainWnd->wndTopMost ,0,0,0,0, SWP_NOMOVE| SWP_NOSIZE| SWP_SHOWWINDOW); Thats it!!!!!!! Not a big deal :)

What is the Current Directory in Windows CE & Windows Mobile ?

Lately i encountered  a situation where i had to find the current directory from where my application is running and all my config files reside. Question is "How do I find the current directory?" on Windows CE/Mobile devices. Desktop / PC it is just piece of cake but Windows CE / Mobile devices don't have a concept of a current directory.  Which means all pats are absolute and there is no concept called relative path. Due to lack of relative paths most of the files are loaded to the "Windows" directory and that is how Windows directory is crowded. Alternatively you can hard code directory path and insist user to load files always there. But i hate to hard code values or copy files to Windows directory.  So this has triggered to find a solution to identify my current directory. Since there is no concept of a current directory on a Windows CE / Windows Mobile device how would one locate a resource for which only a relative path is known?  That is what following c...

Don't fall for Free Satellite TV on PC Scam ?

Few months ago while doing regular internet surfing i came across some tempting flashy advertisement about software that's supposed to give you free satellite TV on your PC. The program costs $30, but they claim it lets you watch hundreds of live worldwide channels free of charge. Sounds too good to be true... is this a scam?" Everything I've read about this type of thing tells me it's a scam, or at least a waste of money.   I am not TV buff but being software / electronics explorer i though of giving a shot but i have no mood to spend single penny on it unless i witness something good. There is NO free trail available for this software, that is something fishy isn't it ? Some how i got hold of this software ( Don't ask me how you know the answer ) and evaluated the same.  The software you get for your thirty bucks is nothing more than a menu of free online television broadcasts. Most of the stations listed are foreign, and the list contains many entr...

Apple CEO on Palm Pre :"if others rip off our intellectual property, we will go after them."

Palm Pre is making big noise as REAL iPhone competitor and apparently it is designed by one of ex-Apple engineer !!!!   Can Apple really patent the Multi touch ? If it does what's the big deal for other manufacturers. Don't you think that patenting on Multitouch is something like patenting mouse device which i feel is general device and preventing others to replicate can have dangerous monopoly issues. Anyways .. read on!!!!!! For those of you who weren't listening in to Apple's earnings call today, you missed a prime moment of defensiveness when Tim Cook fielded a question about how the company plans to stay competitive amidst new entries from the likes of Google and, more recently, Palm. What seemed like an answer due to end with a "we've got some great new stuff on the way" slant, Cook dovetailed into how the company views its new smartphone competition. In his words: Q: "There are other iPhone competitors coming to the market: Android, Palm Pre...

CreateProcess() - Waiting for CreateProcess to finish.

CreateProcess() :   Creates a new process and its primary thread. The new process runs in the security context of the calling process. If the calling process is impersonating another user, the new process uses the token for the calling process, not the impersonation token. To run the new process in the security context of the user represented by the impersonation token, use the CreateProcessAsUser or CreateProcessWithLogonW function. Primary focus of this post is going to be waiting for CreateProcess() to finish. I have seen in many situations developer wants to start a external binary and this task can be accomplished by using CreateProcess() API. What happens after starting this process ?  We will not have control over this newly running application/binary, that is expected however at times we want to wait till it completes it execution.  How do achieve that ? It is not rocket science it in fact is pretty simple.  // Create the process PROCESS_INFORMATION pi; ...