Skip to main content

Posts

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; ...

Windows Mobile 7 Details - Multi-touch, Motion Gestures - Leaked

Hello Folks !!!! Here is small Insight leaked article on Windows Mobile 7 (Due to be released in 2009). InsideMicrosoft just got a gigantic scoop of Microsoft's Windows Mobile 7, due to be released in 2009. This isn't Windows Mobile 6.1—which we've seen leaks of recently—but the next full version of Windows Mobile that fixes a bunch of problems we've seen with the platform. The huge changes are multi-touch gestures (including flicking, swiping and drawing on the screen), motion gestures (shaking the phone), Windows Vista-like redesign of the entire UI, better finger-based navigation and a desktop-like Internet Explorer browser. It's totally amazing, and fixes a bunch of the complaints we had with the platform Sample screenshots :                          

SWOOPO: "Pay To Bid" - Entertainment shopping" with Note of SCAM

Well .... I happened to find this "Entertainment Shopping" Bidding site called SWOOPO ( www.swoopo.com ) and initially i thought it  is something like eBay  and got registered to the same. But it did not take much time for me to realize that SWOOPO runs on different concept of Bidding. I did little research and read how it works and to my surprise it is something we need to handle with extra care. Concept sounds simple but weird "BIDDER PAY TO BID" - Is it confusing ? It is really that confusing ... every item in SWOOPO website is time limited and there are NO reserve prices so catch is users / bidders need to pay $1 for each and every bid which means whether you win or lose you have to pay for the bids. They claim that total price you pay for product inclusive of Bid amount is way less than that of its original market price and of course it all depends on how many have bid for  the product . So suggesting that it is either clever, even legal, money-making schem...