5 Things CIOs need to know before mobile-enabling

Leave a comment


Webinar at Aspire Systems

Webinar at Aspire Systems

Join us for a Webinar                                                                         
Theme: 5 things CIOs need to know before mobile-enabling
Date: Thursday, June 2, 2011
Time: 11 AM PST / 2 PM EST

“More than 4 billion people around the world now use cell phones, and for 450 million of those people, the Web is a fully mobile experience,” according to the McKinsey Global Institute. This explosive growth of mobile is having a significant impact on B2C and B2B businesses.

Mobile-enablement, however, is more than just tailoring your website’s content to fit a smaller screen. There are several options and challenges involved in going the mobile route. Executives overseeing mobile initiatives need to be aware of the considerations – in order to get the maximum RoI from their mobile strategy.

Come listen to two experienced practitioners discuss key elements that will be crucial in your mobile strategy, on June 2nd, 2011 at 2 PM EST.

Some areas that will be covered include:

Native mobile apps Vs. Mobile web

Design simplicity: where less is more

Mobile as a new channel for growth

And much more…

Speaker Profiles

William Walsh
Senior Manager – Mobile strategy
Discover Financial Services

William is a pioneer and thought-leader in the wireless industry. He has created and driven development of mobile multimedia applications (now used on 100+ million devices worldwide) including entry into the emerging $13 billion mobile advertising market and $35 billion location based services market.

In his previous role as Mobile Product Manager at Walgreens, he successfully launched Walgreens iPhone, Android, and Blackberry applications. He defined the marketing message for Walgreen’s iPhone application and propelled it to No.3 in the iTunes Lifestyle category – the app also won in 2 categories of the Webby awards.

Vinod K
Mobile Practice Manager
Aspire Systems

Vinod is an IT practitioner for the last 13 years, with over 10 years working in the mobile space. Vinod understands what it takes to go mobile – the challenges, pros and cons of different approaches. He has consulted several Fortune 500 companies and helped them define their mobile roadmap.

Vinod has hands-on experience working on various mobile technologies, right from programming for Palm OS close to 10 years ago, to leading a 20+ member team for a Fortune 500 company in the retail space recently. Vinod led the team working on their iPhone and Android apps (the iphone was subsequently one of the top 5 apps in the iTunes Lifestyle category).

Advertisements

Logging in MFC

Leave a comment


I often had a necessity to log data from webservice to verify the contents. And thought of implementing a function for that. And the result is here.


void CYourClass::WriteLog(CString sData, CString sFileName)

{
CStdioFile file;

if(file.Open(sFileName, CFile::modeCreate|CFile::modeWrite))

{

file.WriteString(sData);

}

}

Weird Dialog Control Visibility Problem in Windows Mobile

Leave a comment


In Windows Mobile, I recently ran into the following problem.

I had a dialog box which has say about 8 fields. After sometime I wanted to add 1 more field which I duly inserted in between the existing controls using the dialog editor but when I executed the code much to my dismay I could only see a blank space in the place of the control I added.

With some .rc code tweaking I got it working. This is what I have done

1) Open the .rc code. Assume the following is the dialog code which represents the your dialog data

BEGIN

PUSHBUTTON “Button1”,IDC_BTN_1,4,21,73,14

PUSHBUTTON “Button2”,IDC_BTN_2,90,21,64,14

PUSHBUTTON “Button3”, IDC_BTN_3,4,107,64,14

LTEXT “Label1”,IDC_STATIC,4,59,24,8

LTEXT “Label2”,IDC_LBL_1,37,59,106,13

LTEXT “Label3”,IDC_LBL_2,4,82,146,23

CTEXT “Label4”,IDC_LBL_4,30,5,96,8

CONTROL “”,IDC_PRG_STATUS,“msctls_progress32”,PBS_SMOOTH | WS_BORDER,4,40,150,14

END

2) Assume you are adding a label called Label1_1 next to Label 1 but that part of code will get appended towards the end of the existing code as shown below.

BEGIN

PUSHBUTTON “Button1”,IDC_BTN_1,4,21,73,14

PUSHBUTTON “Button2”,IDC_BTN_2,90,21,64,14

PUSHBUTTON “Button3”, IDC_BTN_3,4,107,64,14

LTEXT “Label1”,IDC_STATIC,4,59,24,8

LTEXT “Label2”,IDC_LBL_1,37,59,106,13

LTEXT “Label3”,IDC_LBL_2,4,82,146,23

CTEXT “Label4”,IDC_LBL_4,30,5,96,8

CONTROL “”,IDC_PRG_STATUS,“msctls_progress32”,PBS_SMOOTH | WS_BORDER,4,40,150,14


LTEXT “Label1_1”,IDC_STATIC,4,72,41,8

END

3) Just move the newly added code (marked in green) to the relevant portion as shown below

BEGIN

PUSHBUTTON “Button1”,IDC_BTN_1,4,21,73,14

PUSHBUTTON “Button2”,IDC_BTN_2,90,21,64,14

PUSHBUTTON “Button3”, IDC_BTN_3,4,107,64,14

LTEXT “Label1”,IDC_STATIC,4,59,24,8


LTEXT “Label1_1”,IDC_STATIC,4,72,41,8

LTEXT “Label2”,IDC_LBL_1,37,59,106,13

LTEXT “Label3”,IDC_LBL_2,4,82,146,23

CTEXT “Label4”,IDC_LBL_4,30,5,96,8

CONTROL “”,IDC_PRG_STATUS,“msctls_progress32”,PBS_SMOOTH | WS_BORDER,4,40,150,14

END

Hurray, the control is now visible.

Setting HTTP POST Parameters in Windows Mobile

Leave a comment


Recently I was trying to make a HTTP POST query in Windows Mobile but the POST query was not successful. This is what I have been trying to do

Here sRequestHeaders is the headers which is in Unicode and the MSDN documentation says the following about “lpOptional” parameter which is used for POST parameters

pOptional [in]

Pointer to a buffer containing any optional data to be sent immediately after the request headers. This parameter is generally used for POST and PUT operations. The optional data can be the resource or information being posted to the server. This parameter can be NULL if there is no optional data to send.

dwOptionalLength [in]

Size of the optional data, in bytes. This parameter can be zero if there is no optional data to send.

It just says, pOptional is a buffer containing optional data and dwOptionalLength specifies the buffer in bytes, but when tried to send an Unicode buffer and its size in bytes to this call, the response was not 200 (HTTP_OK). After several attempts I found that the parameters had to be in ANSI buffer. All other parameters deal with LPCTSTR i.e TCHAR buffer, this one alone needs to be an ANSI buffer. Here is the code for that

if( FALSE == HttpSendRequest(hRequest, (LPCTSTR)sRequestHeaders, sRequestHeaders.GetLength(), LPVOID)(LPSTR)pszAnsiRequestParams, dwRequestParamsLen ) )

In the above call pszAnsiRequestParams is ANSI buffer and dwRequestParamsLen is the size of that buffer in bytes. Once I changed this, the response was 200. Is this how one will send the parameters always? If this is the case, how will I send Unicode POST parameters? Since in my case, I was dealing with ASCII characters for time being this is working fine but somehow I feel there should be a way out.

Can somebody post a solution what else am I missing here?

Windows Phone 7 Technical Details

Leave a comment


Following are the some of the top level Windows Phone 7 technical details.

1) You will need a Windows Live ID to activate the phone for the first time, for any app purchases  and for syncing user data.

2) Primarily there are two kind of apps,  lightweight programs developed largely using Silverlight (Microsoft’s Flash competitor) as well as markup. In other words, these will effectively be web apps running locally on the phone, not unlike webOS. The other category will be using XNA (Microsoft’s cross-platform development environment which allows devs to write code that can, in theory, be deployed to Zune, the Xbox 360, or even old Windows with minimal tweaks). Also there can be by hybrid apps, which contain elements of the two.

3) It will be based on Windows CE 6.0 Embedded built upon a 32-bit kernel with a 4GB address space. That means that devices can have a maximum of 4GB of RAM. Of this, half is reserved for the low-level OS functionality, 1GB is reserved for the current running application, and the other 1GB is shared among the other running processes and apps

4) For graphics Direct3D 11 will be supported and no support for OpenGL.

5) Following Wireless connectivity will be supported

  • UMTS
  • EDGE
  • EV-DO
  • EV-DV
  • GPRS
  • HSDPA
  • LTE
  • 1xRTT
  • WiMAX

6) In addition to that FM tuning will also be supported.

Top Windows Mobile Sites

Leave a comment


Top Windows Mobile Sites

http://www.smartphonemag.com/cms/bestoftheweb/bestsites – This lists down the popular windows mobile websites

1) http://www.microsoft.com/windowsmobile/en-us/default.mspx

2) http://www.windowsmobile7.com/

3) http://windowsphonethoughts.com/

4) http://www.wmexperts.com/

5) http://wmpoweruser.com/

6) http://windowsmobilelouisville.com/


As of now Windows Mobile comes under second tier applications but with the expected release of Windows Mobile Phone 7 it is fast catching up with rest of the platforms and as you can see from the list next to BlackBerry it is rated as the next popular platform to develop applications


First Tier App

1) iPhone

2) Android

3) iPad


Second Tier App

1) BlackBerry

2) Windows Mobile