Windows CE cab file web deployment
I am wondering if there is a way to deploy an MFC ActiveX control via
the web to devices running Windows CE. My inf file which I referenced
with CabWiz while generating the cab file is below. In my HTML page,
I use an Object tag to reference the control. My object tag looks
like this (where classid is the real classid, and the codebase url is
a real location for the cab file):
<object id="ActiveXControlName" classid="clsid:
00000000-0000-0000-0000-000000000000" codebase="http://LocationOf/
ActiveXControlNameInstall.cab#version=1,0,0,0">
</object>
We can assume that the site the web page resides on is a trusted site
in the user's browser, and that unsigned ActiveX control will result
in a prompt.
Basically, if the ActiveX control is not registered on the Windows CE
device, I would like user to be prompted to install the cab file on
each page visit. If the ActiveX control is registered on the device,
but the version number of the registered control is older than the
version number specified in the codebase, I would like the user to be
prompted to update the control by installing the cab file. If the
ActiveX control is registered on the device, and the version number of
the registered control is the same or newer than the version number
specified in the codebase, the control will render as normal. Here is
my inf file, with the Provider and AppName fields changed to fake
values:
[Version]
Signature = "$Windows NT$"
Provider = "CompanyName"
CESignature = "$Windows CE$"
[CEStrings]
AppName="ActiveXControlName"
InstallDir=%CE2%\
[Strings]
sh3_cpu = 10003
sh4_cpu = 10005
mips_cpu = 4000
strongarm_cpu = 2577
armcpu = 1824
[CEDevice] ; valid for Windows CE 4.1 - 5.0
VersionMin = 4.1
VersionMax = 5.0
[DefaultInstall]
CopyFiles = Files.Windows
CESelfRegister = ActiveXControlName.ocx
[SourceDisksNames]
1 = ,"Common files",,.
[SourceDisksFiles]
ActiveXControlName.ocx = 1
[DestinationDirs]
Files.Windows = 0,%CE2% ;\Windows
[Files.Windows]
ActiveXControlName.ocx,,, Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127854
How do I get an email address in Pocket Outlook from the Company Directory in WM6?
I am using C#.net on a Windows mobile device. I can get email addresses
stored in my contacts, however, when I use the built in ContactDialog()
window to select a user from the company exchange server, I have an error
thrown.
here is my code: It blows up when I try to access the information for the
contact I pulled down from the server....
private void mnuSend_Click(object sender, EventArgs e)
{
EmailAccount MainAccount = AppSession.EmailAccounts[0];
EmailMessage myMsg = new EmailMessage();
ChooseContactDialog myContactDialog = new ChooseContactDialog();
string contactname, myAddress;
Contact SelContact;
myContactDialog.Title = "select user to send message:";
myMsg.CC.Add(new Recipient("first.last@company.com"));
myMsg.Subject = "Test message from Mobile phone";
myMsg.BodyText = "This is the body of the message";
myContactDialog.EnableGlobalAddressListLookup = true;
while ((myContactDialog.ShowDialog() == DialogResult.OK))
{
contactname = myContactDialog.SelectedContactName;
MessageBox.Show("Contactname=" + contactname); //This much works!
SelContact = myContactDialog.SelectedContact;
MessageBox.Show("About to try to access the Email1Address");
//The following line throws an exception
MessageBox.Show("SelContact.email1address = " + SelContact.Email1Address);
}
MainAccount.Send(myMsg);
MessageBox.Show("Message sent");
} Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127853
Identifying music or video file being played
Hi,
Is there any way I can find out if the file being played is audio or
video? I need to invoke an application based on the type of the file. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127848
Way to see which Threads are still running?
We have coded a .NET CF application with several threads.
Now after exiting, at least one thread is not correctly closing, so it
hangs.
How can I see which one it is?
Thanks Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127846
wm6.1,threaded sms and custom inbox forms?
Hi,
With windows mobile 6.1 and introduction of threaded sms my
application which creates a custom forms for inbox is now having
problem.
It only shows the last conversation,somethimes your own sent messages.
I was wondering how can i fix this behavior,as the IMessage passed
into my createreadform is always the last conversation.
thanks Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127843
how to develop SMS function in wm5 ppc emulator
hi:
I try to read the sms from the inbox on a wm5 ppc emulator,but then i found
that
there is no sms inbox (only for outlook),is this true?
if yes,then how can i develop sms function with this emulator? Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127837
How to develop the SMS function with wm5 ppc sdk?
Hi there
i want to read the sms in inbox on the wm5 ppc emulator in wm5 sdk,
then i found that it seems there is no sms/phone function support on
wm5 ppc emulaotr,am i wrong or miss something?
thanks in advance Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127836
Shell folder extetensions
Hi All,
Is it possible to create shell folder extensions for Pocket PC, I could not
find any reference to IShellFolder interface references in Pocket PC
development documentation.
Does any budy has any ideas on how to create shellfolder extensions for
Pocket PC or any alternatives to achieve the same. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127831
.NET CF & Hardreset - still not possible?
Hello
Is it really not possible to perform a hardreset with newer devices using
.NET CF?
Thanks
Rampf Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127830
Custom font problem on Windows Mobile
Hi,
I am a beginner in Windows programming and currently building a Windows
Mobile 5.0/6.0 application that is dependent on a custom TrueType font I
created. The custom font is mapped to Unicode characters and the font file
resides in the application folder under Program Files. I've read through MSDN
Library and installed my font as instructed here
http://msdn2.microsoft.com/en-us/library/ms901090.aspx . Implementation was
successful and my program displayed the custom font correctly with no issues.
You can download and view my custom font file from the link below.
http://project.ionized.googlepages.com/PDCDefault.zip
Now the problem is that some specific non-related programs on the Pocket PC
device start using my custom font once AddFontResource function is called.
The affected programs will display squares instead of characters, thus
rendering them useless. Not all programs exhibit this behavior though. The
same font corruption can be reproduced if I copy my custom font into the
\Windows\Fonts folder and reset the device. Copying the custom font into
\Windows\ folder may work in some but not all cases. I am also refraining
from adopting the latter methods because extra steps are required to
unregister and remove fonts from the Windows or Fonts folders.
Examples of such problematic programs are HTC Cube, HTC Comm Manager,
KaiserTweak and Windows Mobile's very own screen alignment program. I think
these programs were using system font (Tahoma) before my custom font is
installed.
Before custom font is installed:
http://project.ionized.googlepages.com/before.png
After custom font is installed:
http://project.ionized.googlepages.com/after.png
Iâ??ve searched many places and one of the common workarounds I found was to
copy another Microsoft TrueType font like Verdana into the Windows folder.
Somehow, the problematic programs would choose Verdana over custom fonts but
this is not a guaranteed fix. The other solution was to rename the custom
font family name to begin with the letter Z because somebody mentioned that
fonts are loaded in alphabetical order(?). This did not work for me however.
I could not find any official solutions on Microsoft site regarding this
problem.
So, my questions are:
1. Why do other programs use my custom font?
2. How does Windows Mobile determine which font gets priority over system
font?
3. What can I do to prevent other programs from using my custom font?
I've totally ran out of ideas on how to implement custom fonts now. Any
suggestions or insights will be much appreciated.
Thank you.
Best regards,
Ionized Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127828
Wireless Zero Configuration compliant Device
Good day, all participants,
I would like to buy a device, either a Smartphone or Pocket PC. I want to
use OpenNetCF or Wireless Zero Configuration to retrieve wifi signal
strength. I know that if a device is not WZC compliant, then we cannot use
WZC. Although I heard from our good man, Mr. Chris Tacke that many devices
are WZC compliant, I still want to make sure that I got the right device.
Hence, for anyone who owns a device with WZC compatible, can you share that
information and experience with us here?
Thanks to @sid, we know that HTC TyTN II is WZC compliant. Are there more
devices?
Any comments are welcomed and appreciated
Sam Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127820
CabWiz
Does anyone have good instructions for configuring a CabWiz INI file?
I used CabWiz once before, and it took me a long time to get the INI file to
work.
Now, a couple of years later, I need to do it again, and I'd rather not
spend all that time banging my head against the wall with CabWiz.
I just need an installer that registers my "single exe" program with
Add/Remove Programs, drops a shortcut onto the PPC desktop, and adds the
program to the Start menu.
Thanks! Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127813
Info on Owner drwan UI
I am new to this Pocket PC programming and i read few posts on Owner drawn
UI. I couldn't find much info here and Google also didn't return anything
which explains the basics of this concept.
Can i have few links where can i start on? Managed code is better.
Thank you Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127811
Notification access using softkey when device is locked
Hello all,
In my application, Notification is given to user by using
"SHNotificationAdd" API. At presently I have one problem. User can not
access notification when device is locked. Even it is not updating
soft key which is given into "SHNotificationAdd" API (It is displayed
only left soft key as "Lock"). I want to access notification like user
can access incoming call notification using soft key when device is
locked.
Kindly waiting for positive response. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127810
Slide UI
Hi!
How to make UI in a program on pocket like iPhone? With slide function.
Language C#. Or where can I read about this?
Thanks. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127809
Notification soft key access when device is locked.
Hello all,
In my application, Notification is given to user by using
"SHNotificationAdd" API. At presently I have one problem. User can not
access notification when device is locked. Even it is not updating
soft key which is given into "SHNotificationAdd" API (It is displayed
only left soft key as "Lock"). I want to access notification like user
can access incoming call notification using soft key when device is
locked.
Kindly waiting for positive response. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127808
One app instance only reactivation issues
Hi,
I have a fullscreen dialog based app and *almost* have the "one instance
only" stuff working - with one caveat..
Say I have my app showing either a pop-up dialog or a messagebox. The user
then decides to navigate top the home screen.
The app disappears as expected. He then reactivates the app by clicking on
its icon. It is reactivated but just shows the base dialog, the popup or
messagebox is not shown. It's still there as it blocking the keyboard
interface to the base dialog.
Also after around 30-60 seconds the popup or messagebox reappears.
What do I need to do to get any child dialog or message box to come to the
foregound and gain focus when the app is reactivated?
TIA. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127807
Recording Audio using WaveIn API and Receiving SMS Message Results In Application Crash
Hi.
I have an application that records audio on a pocket pc device (phone
edition) running windows mobile 5. The audio recording works fine until
either A) A SMS Message is received or B) A Phone call is received. Then the
application crashes abnormally.
My question is how do I deal with these A,B situations in order to continue
recording as normal?
regards
Kjetil Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127806
dynamic control creation and visible...
I'm creating some buttons in a loop and adding them to a panel's Controls
collection. I'm setting various properties, one being Visible (true). The
issue is, is that I only see one button and when I look at the buttons in the
Watch window the visible property is set to false. What am I doing wrong
and/or not understanding?
...
System.Windows.Forms.Button censusButton = new Button();
censusButton.Name = "censusButton" + i.ToString() + j.ToString();
censusButton.Text = "New Button";
censusButton.BringToFront();
censusButton.Enabled = true;
censusButton.Visible = true;
this.panelPatient.Controls.Add(censusButton);
...
Windows Mobile 6 Pro C# Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127802
Bug in CAB-File Wizard?
Hi!
I use 4 different languages in my .NET C# Applikation, for that I use
Resource-Files like resource.de, resource.it, ...
After I compile, I get 4 Folders "de","it", .. with one special Resource-DLL
in each of them.
Everything works fine.
Then I use the CAB-Wizard and generate a CAB-File.
But after installing the CAB on Device,
in all Folders (de, it, ..) is the same one File.
I think, the CAB-Wizard or the Extractor doesn't recogize that these a
different Files because they have all the same name. ( but different sizes
and they are in different folders).
What can I do?!? Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127798
Disable hardware buttons on Pocket PC
Hi!
I'm developing an app for windows mobile 5.0 with CF 2.0 and C#.
How can I disable all hardware buttons present in the device?
Thank you! Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127793
Lock Down ActiveSync
I need to disable the ability to brows or install/uninstall software
on a hand held through ActiveSync and through WinXP Explore.
The only access I want the user to have when they cradle a device is
pass through to the network so my software can sync with our server. I
am using AppCenter to lock down the Hand held but a user can still
cradle the device and Install/Uninstall software and use the device
like a USB hard drive where USB hard drives are restricted. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127792
Change the folder icon for our application
Hi All,
i've developed a smartphone application and built the CAB file
file also.
when i install the application in the device(smartPhone WM 6.1), it is
showing the default folder Icon.
Is there any way to change the folder icon for our application?
--
Thanks and Regards,
Shankar B. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127790
Pocket PC 2003 Call button (green button) registry value
Hi all,
I am trying to set up a hotkey for the Call button (Green button),
ie, when I press the call button, an application of my choice would
start running. For that I need to change the default settings in the
registry of the Pocket Pc. Could someone tell me where the default
settings of the call button is stored in the registry and what all
values should I change in the registry so that I can setup the call
button hotkey.Any help would be highly appreciated
Regards,
Sree Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127789
where the hell are sms messages?
where the hell are my received SMS messages?
I turn the flight mode ON in my WM device.
I send some text message from another device with delivery report requested.
I wait a few minutes.
I turn the flight mode off back.
The other device gets delivery report ok.
WM device doesn't show this message. even no notofication.
where is it?!!!!!!!!!!!!!!!!!!!!!!!!!!!! Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127788
Transfer file from PocketPC to PC
I'm trying to develop an application (with VisualStudio2005 and C#) that
can transfer a file from my PocketPC to a PC without using ActiveSync...
and also a Windows application that can transfer from PC to PocketPC.
Thanks
Massimo Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127780
live streaming server on Windows Mobile-unresolved problem
Please tell me how to create streaming server on Windows Mobile using
Windows Media(for example smth similiar to IWMWriterNetworkSink) or other
mechanism,stream will be taken from Cam on PocketPc using DirectShow. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127779
GPRS Monitor
Hi
I am working on Mobile Automation with DATK libraries.I want to check the
bandwidth used by any application when Gprs is connected on the device.
for this i m using Spb GprsMonitor but the tool is UI based so how can i
monitor bandwidth at regular intervals suppose 5sec. or so.
Any sort of help is welcome. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127775
Hooking Mouse Messages
Hello All:
Is there a way to hook all mouse messages (screen taps) in Windows CE or
Windows Mobile 6? It appears that only keyboard hooks via WH_KEYBOARD_LL are
supported.
Some kind of DLL injection approach might be an alternative, but that
requires an application to call CreateRemoteThread, which is also not
supported.
Thanks, Robert Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127772
Detecting when the stylus is present, perhaps using S&N broker
AFAIK there's no support for this, either from the OS, the CF or the
hardware. But wouldn't it be a good idea if any given program could be
notified when the user has removed or replaced the stylus and then
switch the UI accordingly? At the very least it could either hide or
show the SIP or perhaps change it from one style to another. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127760
SHCameraCapture for wm 2003.
Hi All,
I am writing one sample application, in which i want to start the
camera and take photos and save in specific folder. With wm5 and 6
SHCameraCapture work fine, but for 2003 the api is not available.
Could anyone tell me, is there any other api present for 2003.
Thanks
Vishy Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127757
GetUniqueDeviceID using GetProcAddress LoadLibrary
I have an eVC4 project which is running on the WM6 platform. My project uses
the PPC2003 SDK and I wish to use the GetUniqueDeviceID() function.
How do I use GetProcAddress and LoadLibrary to do this? This is an area I
am unsure of.
Thanks for your help
Harry Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127755
how to disable Default OBEX Server.
Hello,
I need to develop my own server over bluetooth using normal
socket communication for windows mobile 6.0 device. Now there is a
default obex server already running on the device, i need to disable
this and get all the obex requests in my application. I tried by
registering for OBEXFileTransferService and then listening on
that..but i do
not get the requests..it goes to the default obex server..How do i
get
my server running?
Any help would be greatly appreciated..
Waiting for your replies..please help. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127754
embedded media player in compact framework application
Hello everybody!
I'm trying to embed media player in my pocket pc application and found alex
feinman's article about hosting activex controls in a compact framework
application. I got stuck in his words below where he uses aximp to create the
source and some dlls from windows\system32\wmp.dll:
"The biggest importance to your project is its ability to produce the
Interop code in its source format. If you run the following command line,
AxImp.exe C:\WINDOWS\system32\wmp.dll /source, it produces three files:
* AxWMPLib.cs
* AxWMPLib.dll
* WMPLib.dll
Why do you want the source? If you look at the AxWMPLib.dll in the ILDAsm
tool, you can see that it is compiled against the desktop computer versions
of MSCORLIB and System.Windows.Forms. Obviously, you cannot use the AXIMP
generated version of AxWMPLib.dll. But, you can compile the source file
against the .NET Compact Framework libraries and get an assembly that you can
use on the device."
How can i compile a source against compact framework. Do i have to add it in
my compact framework project and just debug it and that's all? Or there is a
different procedure to do that?
I also thought of an another kind of solution. If i can't embed media player
in compact framework maybe i could embed it on a asp mobile web form and call
that asp page via a webbrowser component whenever i want to. Any ideas about
that? Thank you in advance for reading my post and for spending your time
with me... Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127753
ReadAllBytes
Hi,
I've been translating some full .net code onto the compact framwork. I've
had a problem with this:
byte[] fileData = File.ReadAllBytes(<file path and name>);
This isn't in the compact framework library.
I've been looking around and can't seem to find the equivalent of this for
the compact framework.
Any ideas?
Thanks.
--
WD Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127750
Setting the height of combobox dropdown
Hello,
I am trying to set the combobox dropdown height on a pocket pc 2003
application. I have tried:
1. MoveWindow(this.Handle, this.Left, this.Top, this.Width, newheight,
true);
and
2. SetWindowPos(this.Handle, HWND_TOPMOST, this.Left, this.Top,
this.Width, newheight, SWP_DRAWFRAME);
Both, do not amount to any change in dropdown height.
I do change the ItemHeight in the combobox when its created
successfully. And, this makes some of the items in my dropdown go
below the fold. There is a vertical scroll that appears but it creates
usability issues that I would like to avoid by increasing the dropdown
height and showing all the items without the need of a scroll.
Would appreciate any contribution,
Sarav Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127748
Language VS2005
Hello,
I work under Windows ce.net 5.0 and I want to use different languages
with my Small device project(Visual Studio 2005).
I created my ressources files.
When I change the Regional setting in the PDA the language doesn't change.
I change the field of window : localizable = true.
My program works under Windows mobile 5 but not under CE 5.0.
Can you help me?
Best regards. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127747
Installing Access 2003 on Vista
I have tried to install Access 2003 on a new laptop with Vista Home premium.
However it wont have it as it needs files from Office 2003. does anyone know
if this can be done without installing office 2003 as the laptop already has
office 2007 installed.
thanks
Allan Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127741
Treo-500v firmware bug causes applications to receive spurious private messages
A firmware bug in the Treo-500v causes all applications to receive a
spurious private message 0x00008017 after a phone call is performed from the
device.
This message is normally in a range reserved for private communication
between the threads of an application and should never be sent to an
application by the system, the shell, or any other software on the device.
This firmware bug can cause random application crashes and other issues.
This issue exists in various other windows mobile devices and was reported
to microsoft two years ago (first spotted on the Motorola Q), but apparently
microsoft still does not include testing for this firmware bug in their
platform validation tests, and we see it popping regularly on new devices.
More information can be found here:
http://www.modaco.com/content/Windows-Mobile-Development-Visual-C/242539/Windows-Mobile-Spurious-private-messages-firmware-bug/ Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127740
Invalid Callstack when CRASH.
Hi Guys,
I am trying to investigate a random crash in my application,
but whenever it crashes I always get a callstack without any Symbols,
just addresses, with a message in output window.
callstack:
0x033734c8
0x033758f8
0xf000fffc
output window message:
Data Abort: Thread=85f7d718 Proc=804161d0 'app.exe'
AKY=00008001 PC=033734c8(commctrl.dll+0x0001b4c8)
RA=033758f8(commctrl.dll+0x0001d8f8) BVA=0fdb5a96 FSR=00000005
First-chance exception at 0x033734c8 in app.exe: 0xC0000005: Access
violation reading location 0x01db5a96.
My application has two threads with lots of GUI components, and I am
not using any GUI components across threads, I tried to look up at the
MAP file and made some sense of it but could not get any reference to
the addresses in callstack.
any suggestion? Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127739
Lack of history.go(-1) and history.back() in htmlview?
Hi,
We're using htmlview(htmlview.dll) to develop our own browser; however, we
found the following java scripts don't work in htmlview.
history.go(-1)
history.back()
Is this a known problem? If yes, is there any available fix for this?
Besides, is ther an alternative browser control which I can use to get
around the problem?
Thanks in advance Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127738
Lack of history.go(-1) and historg.back() in htmlview?
Hi,
We're use htmlview to develop customized browser on Windows Mobile 6;
however, we found that the following java script won't work with htmlview:
history.go(-1)
history.back()
Is this a known problem? If yes, do we have any available fix for this?
Besides, is there an alternative browser control that we can use to get
around the problem?
Thanks. Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127737
Phone1xRttCoverage
Hello
I can get Phone1xRttCoverage. Isnt 1xRtt = UMTS/WCDMA?
I have UMTS coverage, but it still says "false"
Thanks Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127733
.NET CF: Check if GPRS or UMTS
Hello
I want to be able to check if the current connection is GPRS, WLAN, UMTS or
USB
I can use
Microsoft.WindowsMobile.Status.SystemProperty.ConnectionsCellularCount to
see if there is a cellular connection, but how can I then see if it is a
GPRS or a UMTS?
is it possible?
Thanks
Rampf Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127732
AppendMenu with tab not working in WM 6.1
Hi,
With v6.1 Emulator my code to align text in menus is broken.
With all previous versions - adding a '\t' tab character in
AppendMenu() text allowed right alignment of some text, creating a
simple table layout.
Now it looks like the text after '\t' is either lost or spaced off-
screen.
Has anyone else seen this? - and know of a solution naturally ;-)
thanks
BJ Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127729
TAPI LineForward Issue
Hi,
I am working on developing a Pocket PC application running on
Windows Mobile 6.0. I am using TAPI 2.x.I am having an issue with
LineForward API.When I am calling the LineForward API, I am getting an
error LINEERR_INVALADDRESSID. I am not able to understand why I am
getting this error. I have given below the code that I have written .
Could someone help me out on this. Thanks in advance
CallForwarding(HLINE hLine,LPCTSTR lpszPhoneNum)
lphConsultCall = (HCALL *) malloc(sizeof(HCALL));
memset(lphConsultCall,NULL,sizeof(HCALL))))
// Allocating 50 extra bytes to store the destination address
TotalSize = sizeof(LINEFORWARDLIST) + 50;
lpForwardList = (LINEFORWARDLIST *) malloc(TotalSize);
// set initial values
memset(lpForwardList, 0, TotalSize)
// Total size of the data structure, in bytes which includes the
size
// of destination phoneaddress also.
lpForwardList->dwTotalSize = TotalSize;
// Passing only 1 LINEFORWARD array entry
lpForwardList->dwNumEntries = 1;
//Forward all calls unconditionally, irrespective of their origin
lpForwardList->ForwardList[0].dwForwardMode =
LINEFORWARDMODE_UNCOND;
// Size of Destination Address. Giving a little more space than
required 10 bytes
lpForwardList->ForwardList[0].dwDestAddressSize = 14 *
sizeof(TCHAR);
// Offset where the destination address is stored
lpForwardList->ForwardList[0].dwDestAddressOffset =
sizeof(LINEFORWARDLIST);
// Storing the actual address location
wcsncpy ((LPTSTR)((LPTSTR)lpForwardList + lpForwardList-
>ForwardList[0].dwDestAddressOffset),
(LPTSTR)lpszPhoneNum,
lpForwardList->ForwardList[0].dwDestAddressSize);
// Allocate memory to the structure holding the call parameters
lpCallParams = (LPLINECALLPARAMS)
LocalAlloc (LPTR,
sizeof (LINECALLPARAMS))
// Initialise memory locations to zero
ZeroMemory(lpCallParams, sizeof (LINECALLPARAMS));
dwReturn = lineForward(
hLine, // Device Id
TRUE, // Forward all incoming
calls
0, // Ignored if the 2nd parameter is TRUE
lpForwardList,
0, // Number of rings to be considered as
"No answer"
NULL, // This handle is set to NULL if no
consultation call is created.
NULL // Call paramters
);
CallForwarding is called when the CallBackFunction receives
LINECALLSTATE_OFFERING event
case LINE_CALLSTATE: // review the call state messages
{
switch( dwParam1 )
{
case LINECALLSTATE_OFFERING: // New call is coming
{
lpCallInfo = (LINECALLINFO *)malloc(sizeof(LINECALLINFO) +
1000)
memset( lpCallInfo, 0, sizeof( LINECALLINFO ) + 1000 )
lpCallInfo->dwTotalSize = sizeof( LINECALLINFO ) + 1000;
// Getting more info abt the call
ret = lineGetCallInfo((HCALL)hDevice,lpCallInfo);
ret =
lineSetCallPrivilege( (HCALL)hDevice, LINECALLPRIVILEGE_OWNER );
CallForwarding(lpCallInfo-
>hLine,lpszPhoneNum);
}
}
} Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127725
How to find out running on Win CE Core
I need to know if my program runs on a Windows Core Verion.
I know I can use SystemParametersInfo with SPI_GETPLATFORMTYPE to find out
the platform type.
On most Core System's it give me useless information and on most "Full CE"
Systems it gives me "PocketPC". But te point is most ! I have a Full WM5
System from a Discounter that gives me not PocketPC, instead it reports
"PLATFORMTYPE". So is there a secure way to find out that I#m running on a
core system ?
Thomas Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127723
Membership Provider Syncing
Hello all,
I am testing a website that uses SQL Server 2005 membership
provider. I would like to have a pocketpc WM5 or WM6 application that
can register users disconnected and then when I sync update the SQL
Server. Here are what I think my programming options so far:
1. Create a .Net Compact Framework App that uses the aspnet_user
tables in a local SQL Server Mobile edition. Then figure out how to
sync that with the main DB.
2. Create a .Net Compact Framework App that creates XML files for each
user. Then when I sync take these files and use SSIS to take the XML
file and send it to the Database
3. Create a .Net Compact Framework App that uses the WebBrowser
Control and has a cache and then calls a webservice when it is online
to create the users
4. Create a .Net Compact Framework App that creates a sql script for
each inputed user then execute it on the main db when I sync later.
Has anyone seen or used this type of app? Can anyone see or think of
the quickest solution?
Thanks
Brian B Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127720
Install USB device driver on WM 5
Hi,
I have installed an USB driver for a device, on O2 Flame (running WM
5). So now when I connect the device to the O2 Flame (OTG mini-A i.e. Flame
as host). The device gets identified and the driver loads fine.
But there are some problems:
1. If I leave the device connected to the O2 Flame and reset O2 Flame. I
receive the message box "Unidentified device", asking for the driver dll. If
I specifiy the driver dll it fails to load.
2. If I connect the O2 Flame with the PC through ActiveSync for syncing some
other files. Then I connect back the Flame to the device. I see again the
same message box "Unidentified devcie". Whereas the device was working fine
before I connect to PC over ActiveSync.
We do not have Mobile2Market certificate, which we will be purchasing
later during distribution. How to avoid these "Unidentified device" message
during the developement work.
Can someone please help.
Thanks
Manas Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127719
Connection Sharing without WiFi
Hello,
First off, thanks in advance for any help and/or suggesions.
I want to connect a my mobile device to a PDA, Pocket PC WiFi + WAN enabled
phone. I want to create a Ad Hoc WiFi connection to the phone and bridge the
PDA WiFi adapter to the WAN adapter thus giving my device internet sharing.
[Dev](WiFi) -----> (Wifi)[PDA](WAN) ---> (Internet)
I don't have any other interface options. I'm a developer of the device, a
Windows CE 5.0 custom device (i.e. I can build in any support I need).
It's my understanding that Windows Mobile has connection sharing but I'm not
sure if SYSGEN_GATEWAY (Bridging) is included. Basically, I'm not sure if
it's customary for WM devices to support this type of thing. I know almost
all of them will support this type of thing via Bluetooth but it's unclear if
I can do this with WiFi.
Thanks again for your help,
Chris
--
Chris Kavanagh
Software Developer
LibreStream Technologies Inc.
www.LibreStream.com
Unit 200 - 55 Rothwell Rd.
Winnipeg, Manitoba
Canada R3P 2M5 Tag: Is there any system interface can be called to achieve L2TP/IPSEC in Tag: 127712