textedit - General Questions and Answers

Hi,
I use eMbedded Visual C++ 3.0 with the build in resource-editor to develop an application for Pocket PC 2002. The user must type his password on textedit-field in a login-dialog.
In the resource-editor I selected the attribute "password" for this textedit-control. The input-characters of this textedit-field are therefore displayed as *.
But the auto-suggestion still works and the text is shown in a tool-tip-field. Does anyone know, how to turn off this stupid behavior?

Questions go in the Q&A Section

Related

Windows Mobile 5.0 Direct Push AND timed-sync simultaneously

First, I am new to this forum and apologize if this is posted to the wrong topic.
Does anybody know of a way (either native setting/registry tweak or 3rd party app) that allows you to set up a timed activesync while also using the Direct Push technology? In my tests on my Cingular 8125 (upgraded to newer ROM than factory) I use Direct Push and it is WONDERFUL with the exception that it seems only the "inbox" folder is pushed. I use rules on Exchange that sort certain items into other folders. Although they sync when i manually start an activesync, they do not update through Direct Push. These items are not as important as my Inbox, but it would be nice if, say, the device could do an ActiveSync every hour or so. However, if I put the ActiveSync schedule to anything other than "As new items arrive" the Direct Push becomes disabled.
This cannot be very hard to code, because from my research there are new APIs available, specifically ActiveSyncStart and ActiveSyncStop in activesync.h which start and stop activesync manually from a 3rd party app. However, they are only available in Unmanaged code (ie, C++) and my Visual Studio only has VB.NET and I cannot figure out for the life of me any way to marshall those functions.
Anybody know of a little 3rd party app that can initiate activesyncs on a timed schedule while having DirectPush enabled? Or is anybody with VC++ and Mobile SDK up to writing one?
Solution
I figured out the solution to this problem (in case anybody is interested).
The documentation at MSDN appears to reference the wrong library (i can't even find an 'actsyncc' which is what is in the MSDN article). The DotNet P/Invoke for VB.Net should be...
Private Declare Function ActiveSyncStart Lib "aygshell.dll" () As Integer
Private Declare Function ActiveSyncStop Lib "aygshell.dll" () As Integer
From there, it's as simple as just creating a timer that fires up "ActiveSyncStart"
I may not know unmanaged C++, but I know my VB.Net.

MAPI and MMS

Hi all,
I'm working on an Windows Mobile application that requires me to make use of MAPI to programatically send MMSes (with an image file attached) from one device to another.
I've mainly used the "Sendmail" sample codes provided with Visual Studio 2005 as a reference point:
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Sendmail\ SendMail.sln
A similar program source (by someone else) can be found here:
http://www.mombu.com/microsoft/pocket-pc-phone-edition/t-send-mms-using-mapi-on-smartphone-221671.html
My own modifications to the code (tested on a Dopod 810) include setting PR_MESSAGE_CLASS property tag to IPM.MMS1 (This ensures the use of the proper MMS compose form that is found in tmail)
I'm having quite a lot of trouble trying to attach a JPG file to the MMS. To date, 2 main problems exist
1. JPG image is not being "attached" to the message (received SMS has no message objects, other than the subject line).
2. Message body is not shown, even if written to stream.
What could be a possible cause here? The sample source codes do not actually reference proper files, so I was wondering if I might have missed setting other property tags. Just hoping to find someone who has had some experience in integration MMSes and MAPI. Some sample source code would definitely be of help too
Thanks in advance.

Visual Studio questions

1. How can i make WVGA application in visual studio? Largest screen option i can create is VGA (Windows Mobile 6 Professional VGA) and then there is blank area on bottom of application.
2. How can i make separate form for landscape/portait (so i can reorder elements when phone is in landscape)?
3. Is there any better emulator? Included one is slow and i cant set up anything that need soft reset (when i do soft reset, visual studio launch new emulator window, because old one "disconnected")
4. Is there any way to remove unsigned warning, when you test directly on PDA? Its annoying that i must confirm every time i want to test something.
Visual Studio Answers
1. Download the Windows Mobile 6.1.4 SDK it has a 400x800 device. Or download 6.5 for a device labeled WQVGA. The 6.5 Emulator is even slower than 6.1.
2. Don't bother with two forms, in the OnPaint (MFC..NET) or WM_PAINT (Win32) code read the size of the Client Area of the screen (GetClientRect() or Form.ClientSize) , then decide whether it is Landscape or Portrait and position the stuff on the screen exactly where you want it.
3. You are stuck with the stuff that MS releases, unless the phone manufacturers decide to release their own images. (Unlikely.)
4. If your EXE is unsigned the OS will turn its nose up at it, the first time it is run and ask you if you want to execute it. If it is recompiled the phone thinks it is a different program, and asks you again. Sign the image to stop it.
works just fine for me
in emulator options you can set the res to what you want
and in the size of your form you can set the size to what you want
if you're not up for altering the res yourself then you can dl the se x1 sdk it comes with a ready
wvga emulator
For # 1, you can download the complete developers toolkit here.
For # 2, if you mean how to change the emulator to landscape... go to File -> Configure -> display on the emulator and select the required angle in the Orientation field. Then you need to manually set the screen to landscape inside the emulator (Windows Mobile) by going to START->SETTINGS->SYSTEM->SCREEN and selecting LANDSCAPE. The emulator should change this automatically depending on the screen orientation, but it doesn't (?).
Don't bother with two forms, in the OnPaint (MFC..NET) or WM_PAINT (Win32) code read the size of the Client Area of the screen (GetClientRect() or Form.ClientSize) , then decide whether it is Landscape or Portrait and position the stuff on the screen exactly where you want it.
Click to expand...
Click to collapse
Can you please explain how to work with that?
it's only relevant if you do c++ without .net
Sorry about that, I was rushed, and it was a bit vague.
In Win32 your application is sent a WM_PAINT message when the window requires redrawing. In this case trap the message and then use GetClientRect() to obtain the dimensions of the client area. Depending on whether the screen is wider than taller, or vice versa, it will tell you the orientation of the screen.
In MFC or .NET the OnPaint event of the form is triggered. Add code in this event to examine the form's ClientSize property to find the same details. This is a Size object which has Height and Width sub values. i.e the width is Form.ClientSize.Width and the height is Form.ClientSize.Height. By comparing these values you can figure out the orientation.
This event occurs before the individual elements of the screen are drawn, so you can change their Left and Top properties to move them around to where you require them on the form.
I downloaded WinMobile 6.5 Development kit, but there was not WVGA option under FormFactor, only new emulators appeared. I solved problem with manually increasing form height.
Anyway, thanks for all information!

Help localizing a program - drop down boxes won't open after editing

Hello,
I'd like to ask for some expert help with editing the resources of the EXE file of a piece of software. The application's name is NetChanger, it's Japanese, and I am editing it using XN Resource Editor.
I am having the following problem: if I rename (from JP to EN) any item on an expandable menu or the label of a drop down box, the same will no longer open. When restored to its Japanese text, the drop down works as expected.
For anyone caring to take a look, please download and open attached file (only XN Resource viewer shows Japanese text normally, all other editors show ?????).
Example - the main menu, or tap "Register" > General Wireless (ticked) > Next -- on the screen that opens, if I edit anything on it, even not the label of a drop down box, but say the TCP/IP Settings button - none of the drop downs works anymore.
Note: simply place folder anywhere on your pocket and start the program, it will work.
Sorted
It seems XN Editor was causing the problems. So I worked with it to show me the Japanese text but made the changes in PE Explorer and the program was OK.
I have created an install file that will install the English version to the device, although some bits are still untranslated, while others I simply did not understand the meaning of, so it is just what the machine translation produced.
If anyone is interested, test it and let me know if you have any suggestions or comments.
The install file will show the Agreement garbled - just tap the LEFT button to agree.
It says something about a trial from 2006 until April 2009 - this could be the reason why the Connect / Disconnect buttons are greyed out, but otherwise it seems like a decent piece of software.
I have included a machine translated Help file in the ZIP - replace the file in Windows directory with it, if the JP file is installed there.

[Q] Excel spreedsheed for android, filter and functions

Hello, I have new SII (and it is my first android device), I need for it android application that can open my excel spreedsheed with nearly 10000 rows (columns are there just 8) but it needs to be able to do:
1. Open such big spreetsheet
2. Set there filter, enough is "automatic filter" like exist in PC Excel.
3. It must be able use function "summation" (not sure if this english word it correct) simple count all values in selecte area of columns
4. it must be able use function summation applied on filter (subtotal)
5. I must be able sort items as minimum for 1 column, better will be for 3 (like in excel at first sort by colum C, than after B and last after E for example
It can be pait application, no problem, but at first I need know that it can do what I need.
have you tried this?:
https://market.android.com/details?id=com.dataviz.docstogoapp&feature=more_from_developer
No, I did not. I installend free version that is for me nearly useless because it is plain viewer.
Looking how free version works it looks to me that:
summation amd functions will be possible, no problem with it
BUT
Filters are not available.
About data sorting I really do not know.
However I do not have paid version so in fact I do not know. I do not want purchase it if it does not work for me. Ok, may be I can find some support and ask there, but may be there are other applications working.

Categories

Resources