ipconfig for PPC
I have a Pocket PC 2003 SE (Windows Mobile 2003 Second Edition ) with
Windows CE 4.21.
Is there an utility I can install which provides ipconfig and other NT
command prompt apps ? Tag: Compilation in dot NET Tag: 116430
Attach to mstli.exe process
I am attempting to attach to mstli.exe process on my device to test a Today
Screen plugin, using Alex Feinman's article at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/device_debug_vs2005.asp as my guide.
I do not see mstli.exe on the process list. I saw another posting here that
says to attach to shell32.exe, but I when I attempt this I get "Unable to
attach to the process." error.
Does anyone have an idea about this?
Thanks for any help,
Steve Tag: Compilation in dot NET Tag: 116428
Reading a big ASCII ( txt or xml ) file in the PPC
I have a 17MB Txt file that I need to Open in the PPC.
The word mobile cant open it. I need to gather the data in the TXT file..
How can I open big ACII files?
TextWriter tw = new StreamWriter("data.txt") <- Like this he needs to open
the whole file and it is a 17MB txt file.
Thanks!
--
Alberto Cardoso Tag: Compilation in dot NET Tag: 116425
DataGrid scrollbar events
Is there a way to trap the scrollbar events? I have a routine that allows
me to edit an item in a DataGrid. However, if the grid is scrolled when the
user is editing, the edit box stays where it was. If I could trap the
scrollbar, I could possibly move the edit box.
Thanks,
Kevin Tag: Compilation in dot NET Tag: 116424
implementing DOM using XHTML in wap browsers
Is there any way to implement dom declerations (like add to favorites, form
fields handling etc..) when developing a xhtml wap site for wap browsers
doesn't support scripting languages? Tag: Compilation in dot NET Tag: 116410
warning after deploying an application =?ISO-8859-15?Q?f=FCr_d?=
hello NG,
everytime I change the programcode (in VS 2005) and want to debug the
program on my WM 5.0 Device (HP IPAQ rx1950), a warning appears after
deploying and I have to confirm, that I trust the unknown manufacturer
of that control/program.
In german the warning is:
"Das Ausführen dieses Programms erfordert eine Komponente eines
unbekannten Herausgebers. Sie sollten es nur ausführen, wenn Sie dem
Herausgeber der Komponenete vertrauen. Vorgang fortsetzen?"
The same thing happens when I do not use my installation routine but
simple exchange the excutable files on the device. The first start of
the application shows the same warning.
It does not happen on my IPAQ hx2750 which I have updated from 2003 CE
to 5.0
Is there a way to avoid these question? Perhaps a registry entry or
something else?
thanks in advance,
Juergen Tag: Compilation in dot NET Tag: 116409
[LTK]The randmon seed cause Graphic Device Interface Test failed
Hi,
When i test the GDI with WM 5.0 LTK(october1), a few test cases failed
nearly,such as RoundRect() function.
We found if change(or remove) the failed test case's parameter '-r <rand
seed>', they always passed.
In WM logo test help file, i saw that 'If random failures are encountered,
make sure the random seed matches the test case which you're trying to
duplicate:
tux -o -d gdiapi.dll -x<test case number> -r <rand seed>'.
1. But what's the right random seed?
2. Why the test case need the random seed?
thanks for any suggestion.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/pocketpc-prog/200610/1 Tag: Compilation in dot NET Tag: 116405
Find process
Hello,
I am writing an application using the .NET CF2. The purpose of this app is
to provide a means of starting and terminating a certain background process.
I can start the process using the process.start method. The problem is that I
have no way of knowing whether the process is already running. Is there a way
to find the process by the executable name? The GetProcessesByName method
does not exist in the compact framework. Is there a native code equivalent
that I can dll import? I have seen an app written in .NET that lists all
running process names and thier IDs, with the option to kill them, so I know
that it is possible. Alternatively, Is there a way to find the processes
message queue by name so that I could ping it, or send it a quit message?
Thanks
Jonathan King Tag: Compilation in dot NET Tag: 116403
Detect key press without window, find process
Hello,
I have a process that runs in the background that I want to use to detect a
press and hold of the power button. The process has no window. It just has a
running message loop. Therefore, I cannot use RegisterHotkey. Is there
another way that I could detect when the power key is pressed and/or held?
Thanks Tag: Compilation in dot NET Tag: 116399
Returning to pocket pc programming - help please
Hi all
Apologies for crossposting... I originally posted this message on
microsoft.public.pocketpc. I then discovered this group and I think it more
appropriate that the message is posted here.
I used to do a little bit of programming for the Pocket PC in the early(ish)
days (Jornada SH3 stuff). This was mainly conversion of programs that I had
written in Visual Basic so that they worked on the PPC. I did a couple of
programs in eVB but
found its functionality limited as I was used to the full PC version of VB.
I also converted a couple of my programs using Appforge which worked fine,
but I always worried about the overhead of the runtime files, although I
guess that's not as much of an issue nowdays with there being much more
memory available.
I would now like to get back into writing programs for the PPC.
Unfortunately, things have moved on since the turn of the century and
because i've done virtually no programming since then I feel completely out
of touch. I would be grateful if someone could explain exactly what I now
need to be able to develop a program for Windows Mobile 5.00
I guess i'm going to have to re-learn to some degree, but I accept that.
The question is what should I be using as an ex VB6 programmer, obviously I
would like the shallowest learning curve possible. Is VB Dot Net the way to
go or is there something I can bolt on to my VB6 that will allow me to
develop for the Mobile 5 platform?
Many thanks in advance from an ageing (48 yr old!) VB programmer :-)
Cheers
Jem Tag: Compilation in dot NET Tag: 116398
How to implement the shadow background such as Inbox listview background?
How to implement the shadow background such as Inbox listview background? it
will be changed when you changed the Today scheme.
It seems there is a System Brush, but I can't find out the solution.
Thanks Tag: Compilation in dot NET Tag: 116395
Class and Object destroyers
Here's a question regarding destroying objects and thus freeing up
memory as it should (I've read many articles about this subject but
most of them are saying different things about the same issue). Let's
say that I have a following class:
class CMyDialog::publicCDialog{
public:
CMyDialog(CWnd* pParent = NULL); //constructor
enum{IDD=IDDDIALOG}
CBitmapButton bButton;
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
int a, b;
CString s;
};
So, the question is: when I create this object in my code and then
destroy it afterwards with EndDialog(IDOK), and DeleteTempMap following
immediately, will the destructor destroy and free memory that was
occupied with those various variables that I've declared some of them
as public some as protected? Especially I'm curious about CString s
variable? Please advise my how you people do it if they aren't
destroyed auttomaticaly? Thanks for replying. Tag: Compilation in dot NET Tag: 116394
How to: Create Meeting request in inbox of Pocket Outlook???
I need to create the document of type "Meeting request" in inbox of
Pocket Outlook (Checked in ActveSync account or other one). For this
purpose I use MAPI sub-interface IMAPIProp. As a result of my actions I
have the document inside of inbox, externally absolutely identical to
those which receive through ActiveSync. It has all necessary
attributes: the correct icon, correct subject, details of a meeting are
present at a body, in the menu there is an element allowing to make
"Accept", "Decline", and "Tentative". The problem is -
nothing happened when choosing one of the menu options ("Accept",
"Decline", "Tentative") - Request not disappear from inbox ,
calendar item is not created , and mail with user response missed in
outbox.
Thank you.
// ----- ----------------START-----------------------------
// All times was converted to GMT before using.
// All Strings functions returns UNICODE strings.
IMessage * imsg = .....// we create object successfully in right
storage
//IMAPIProp is sub-interface of IMessage
SPropValue props[17];
memset(&props, 0, sizeof(props));
props[0].ulPropTag = PR_SENDER_NAME;
props[0].Value.lpszW = (LPTSTR) GetFrom();
props[1].ulPropTag = PR_SENDER_EMAIL_ADDRESS;
props[1].Value.lpszW = (LPTSTR) GetFrom();
props[2].ulPropTag = PR_SUBJECT;
props[2].Value.lpszW = (LPTSTR) GetSubject();
props[3].ulPropTag = PR_CREATION_TIME;
props[3].Value.ft = GetCreationTime()
props[4].ulPropTag = PR_MESSAGE_DELIVERY_TIME;
props[4].Value.ft = GetDeliveryDate();
props[5].ulPropTag = PR_MESSAGE_CLASS;
props[5].Value.lpszW = _T("IPM.Schedule.Meeting.Request");
props[6].ulPropTag = PR_SENT_REPRESENTING_NAME;
props[6].Value.lpszW = (LPTSTR) GetFrom();
props[7].ulPropTag = PR_SENT_REPRESENTING_EMAIL_ADDRESS;
props[7].Value.lpszW = (LPTSTR)GetFrom();
props[8].ulPropTag = PR_SENDER_ADDRTYPE;
props[8].Value.lpszW = _T("SMTP");
props[9].ulPropTag = PR_SENT_REPRESENTING_ADDRTYPE;
props[9].Value.lpszW = _T("SMTP");
props[10].ulPropTag = PR_CLIENT_SUBMIT_TIME;
props[10].Value.ft = GetSendDate(st);
props[11].ulPropTag = PR_MESSAGE_FLAGS;
props[11].Value.ul = 1;
props[12].ulPropTag = PR_MSG_STATUS;
props[12].Value.ul = MSGSTATUS_RECTYPE_SMTP;
props[13].ulPropTag = PR_START_DATE;
props[13].Value.ft = GetMeetingStart();
props[14].ulPropTag = PR_END_DATE;
props[14].Value.ft = GetMeetingEnd();
props[15].ulPropTag =0x80FB0003; //ResponseStatus;
props[15].Value.ul = 5;
props[16].ulPropTag = 0x81540003;//MeetingStatus
props[16].Value.ul = 3;
hr = imsg->SetProps(17, props, NULL);
// ----------------END----------------------------- Tag: Compilation in dot NET Tag: 116393
completing words in wince2003
I'm trying to complete words in a simple text box(in c++) , after
entering the first letters of the word, in a similiar way as been done
in the PPC's Word or in interkey products such as :
http://microsoft.handango.com/PlatformProductDetail.jsp?siteId=75&jid=XB5CD4AC714622C79C2D9854EF2926D3&platformId=2&productType=2&catalog=0&sectionId=0&productId=183858
My question is :
Is there ant function or set of functions that i can use in order to
get the list of words the WinCE 2003 uses for completing a word or
functions the get similar words when a prefix of a word is entered Tag: Compilation in dot NET Tag: 116391
Sending a SMS on PPC2003
Hello!
Currently, I have the need to send a SMS programmatically. I got it
working with using the SmsSendMessage function, but unfortunately no
copy gets stored in the sent items folder.
So I thought about switching to MAPI. I opened the message store with
the display name "SMS", created a new message in the message store's
drafts folder, set the properties PR_EMAIL_ADDRESS and PR_SUBJECT and
finally called the message's SubmitMessage-Method. All this works as
expected (neither method returns an error or a warning). Unfortunately,
all it does is copying the message to the outbox folder, the message
does not get sent.
So what am I doing wrong? Maybe I have to set some more properties on
the message object? Additionally, SubmitMessage does not seem to block.
Is there a simple way to wait until the message got sent or, if the
message can not been sent, to return an error? Or can the SmsSendMessage
function be used to store a copy of the message in the sent items
folder? Or am I completely on the wrong track?
I know, this are many question, but maybe someone has some enlightenment
for me. :-)
Thanks,
Rene Tag: Compilation in dot NET Tag: 116389
Strange behaviour of dialog box
Hi, friends, I have a problem about using modal dialog box.
For example, there are two dialogs, one is a main dialog, it is modaless,
the other is a modal dialog and its parent is the first dialog. The problem
is, when the modal dialog opens the IME panel, and then I open another
application, keeping the IME panel opened with the dialog in background. And
then I switch back, let the first application gain the focus, and the problem
occurs, the IME panel is hidden, but the modal dialog does not resize to
fullsize.
I debug my code and find that the modal dialog did not receive any message
when I switch back. But its parent, the main dialog which should be disabled
receives several message such as WM_ACTIVE, WM_IME_NOTIFY...
I use DialogBox to show the modal dialog, and set the first dialog as its
parent. I don't know why this happens. Why WM_ACTIVE message is sent to its
parent but not the modal dialog.
Can somebody help me?
Thanks Tag: Compilation in dot NET Tag: 116386
How to replace built-in Windows Mobile MP3 decode filter
Hi,
I am trying to use my MP3 DirecShow decode filter to replace WIndows
Mobile built-in one but fail. Can anyone help tell me how ?
Thanks in advance.
Alan Tsai Tag: Compilation in dot NET Tag: 116385
install .NET CF on PPC
I need to install Microsoft® .NET Compact Framework 2.0 Redistributable on
a Pocket PC device.
Is it necessary to copy NETCFSetupv2.msi to the PPC and run it on the PPC ?
Or is it somehow possible to perform the installation over ActiveSync 4.2 ?
How to do this ?
Thanks. Tag: Compilation in dot NET Tag: 116383
newbie problem with sql express
Hi guys!!
Im new at this wonderful world, im triying to connect a pocket pc to a sql
express server, but i cant do it =(
And when i try to connect to a sql 2000 standar it was successful, is it a
limitation of sql express? or there is specifit way to do it?
in my code i use this connection string an it works with pocket pc
SqlConnection cnn = new SqlConnection("Data Source=192.168.1.40;Initial
Catalog=mydb;User ID=sa;Packet Size=4096;Password=123");
SqlCommand cmd = new SqlCommand();
SqlDataReader rdr;
cmd.Connection = cnn;
cmd.CommandText = "select * from arearesp";
cnn.Open();
rdr = cmd.ExecuteReader();
while (rdr.Read())
{
comboBox1.Items.Add(rdr["ds_arearesp"].ToString());
}
rdr.Close();
cnn.Close();
using C# and this connection string works but using windows
SqlConnection cnn = new SqlConnection("Data
Source=192.168.1.40\\sqlexpress;Initial Catalog=mydb;User ID=sa;Packet
Size=4096;Password=123");
i've tried it with pocket pc but when try to open connection it fails i got
an error
Regards.
Rick. Tag: Compilation in dot NET Tag: 116377
DirectShow WMV Decoder on WM5
Hi all,
I am trying to decode a video stream encoded as WMV3 on a Windows Mobile
5.0 device. More precisely, I have a DirectShow filter graph, with as
source filter a RTP source that receives WMV3 video from the network.
The goal is to render the video data in a video window.
I noticed that there is a DMO for WMV9 *encoding*, but not for decoding!
The WMV9 encoder DMO can be successfully added to the filter graph:
> CHK( pVideoEncoder.CoCreateInstance( CLSID_DMOWrapperFilter ));
> CHK( pVideoEncoder.QueryInterface( &pWrapperFilter ));
> CHK( pWrapperFilter->Init( CLSID_CWMV9EncMediaObject, DMOCATEGORY_VIDEO_ENCODER ));
> CHK( pFilterGraph->AddFilter( pVideoEncoder, L"WMV9 DMO Encoder" ));
This doesn't work for the decoder DMO however:
> CHK( pWrapperFilter->Init( CLSID_CWMVDecMediaObject, DMOCATEGORY_VIDEO_DECODER ));
results in hr = 0x80040154 {Class not registered}
After some research I found out that indeed there is no such filter in
the list of DMO's; in the registry at
HKEY_CLASSES_ROOT\DirectShow\MediaObjects\.
(the only ones are an MP3 decoder, and a WMV9 encoder... strange
selection if you ask me.)
I figured that maybe they forgot to register the decoder, so I did that
myself:
> DMO_PARTIAL_MEDIATYPE wmv3 = { MEDIATYPE_Video, MEDIASUBTYPE_WMV3 };
> hr = DMORegister(L"WMV Decoder", CLSID_CWMVDecMediaObject, DMOCATEGORY_VIDEO_DECODER, 0, 1, &wmv3, 1, &wmv3);
which succeeds. (the CLSID is added under MediaObjects, and the category
is added under MediaObjects\Categories.)
This, however, does not solve the original problem: Init still returns
Class not registered.
How can I access the WMV decoder in a DirectShow graph on WM5?
Thanks for your help.
Wouter Tag: Compilation in dot NET Tag: 116376
adofiltr file not found error
When we install our embedded vb application on a pocket pc we also install
files to support the DEVICETODESKTOP and DESKTOPTODEVICE api's. We run an
application from the desktop that uses these api's to copy a *.cdb to the
desktop as a *.mdb, and the reverse. This worked for years with pocketpc
devices. With WM5 we had to install the extra files (ADOCE runtimes), but
this has worked for months on devices with Windows Mobile 5 and Active Sync
4.1 or 4.2. The desktops are XP, W2k, or W2k3.
Recently this has started to fail on some machines. When the desktop app
calls DEVICETODESKTOP we get Error 53, file not found "c:\Program
Files\Microsoft ActiveSync\adofiltr.dll".
We declare the api as follows:
Private Declare Function DEVICETODESKTOP Lib _
"c:\program files\Microsoft ActiveSync\adofiltr.dll" ( _
ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
We then use it with syntax similar to:
lngReturnValue = DEVICETODESKTOP(App.Path & "\Data.mdb", _
"table1..table2..table2..", _
False, True, strCDBLocation & "Data.cdb")
Per suggestions in an old posting in this newsgroup, we tried declaring the
api with no hard coded path and placing the dll in the same folder as the
exe. We also tried passing a blank string for tablelist (no list of database
tables). We've tried reinstalling everything, but we still get the same
error. We have tried adofiltr.dll version 4.1 and 4.2, and tried with it in
several locations. Our applications (desktop and mobile) have not changed
since Spring.
We fear a recent update has altered security. We can't tell the difference
between installations where this works and where it fails. Any ideas or
suggestions.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net Tag: Compilation in dot NET Tag: 116372
Interprocess access to IReplNotify
I don't know COM, but it looks like I'm about to learn it. Is it
possible to make an interprocess call to the IReplNotify instance
stored in my service provider to call OnItemNotify(). Has anyone out
there attempted this and can you explain how to do so? Tag: Compilation in dot NET Tag: 116371
Turn on/off the backlight
Hello
I want to turn on/off the backlight in my application function and
the function must follow the Settings->Backlight->(time value in turn
off backlight if device is not used for).
I use RegSetValueEx to change the BatteryTimeout value. but it's
unuseful unless you reset it.
So I search the microsoft.public.pocketpc.developer to find the
method to solve it, someone mentions that
::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0) is useful. I
add the codes in my function, but the backlight status is not changed.
Are there some function or api to solve it??
Any suggestion is useful, thanks a lot!! Tag: Compilation in dot NET Tag: 116361
Event capture on a contact change
Hi All,
I am really stuk on this and would require some help on this.I am trying to
syn contact change on Pocket PC for Windows Mobile 5.0 with a remote server.
I am using C# and the SNAPI API does not provide the event on contact
change.Also i tried List change event on Outlook Session but it does not
work.Can you guide me on this.
Thanks in advance
Vikas Tag: Compilation in dot NET Tag: 116359
Restore original factory settings
How we can programatically Restore original factory settings in windows
mobile 5 pocket PC. I have used SetCleanRebootFlag() and KernelIoControl.But
its only rebooting/soft resetting the device. Any thoughts? Tag: Compilation in dot NET Tag: 116358
Dev resources for Windows Mobile Device Center (Vista)?
Hi,
With the release of Windows Vista RC1, the new Windows Mobile Device
Center Beta 3 seems to have finally gone public.
However, I am having a hard time getting my hands on developer
resources for WMDC, especially when it comes to migrating custom
synchronization providers from ActiveSync to WMDC. Does anyone have any
information about WMDC registry setup, PDA device monitoring COM
interfaces (such as IDccManSink), RAPI capabilities, WMDC control
facilities, CEAPPMGR usage, and so on? Or do I have to reverse-engineer
the whole thing? ;)
Thanks,
Gary Tag: Compilation in dot NET Tag: 116356
ChangeDisplaySettingsEx / PocketPC 2002 and 2003
Hi to all!
I'm trying to write a function to know actual screen orientation on
pocketpc.
I saw on MSDN that i can fetch related info with this code:
DEVMODE devmode = {0};
devmode.dmSize = sizeof(DEVMODE);
devmode.dmFields = DM_DISPLAYORIENTATION;
ChangeDisplaySettingsEx(NULL, &devmode, 0, CDS_TEST, NULL);
That's run fine if i compile the code with EVC++4 + ppc2003sdk for
pocketpc with windows mobile 2003 or later; but what about ppc2002?
There's a way to keep same executable, compiled with evc++3, that can
tell me screen orientation on ppc2002,2003/2003se/2005 and so on?
I know that there isn't screen orientation on ppc2002, but this
function in that case could give me "n/a" or "normal orientation" or
similar...
To be short:
- I should use ChangeDisplaySettingsEx in order to get screen
orientation
- ChangeDisplaySettingsEx is not available unless i use evc++4 with
ppc2003 sdk
- If i compile it with evc++4 it won't run on ppc2002
Do you think could be a solution for this? (without using 2
executables!)
:)
Thanks in advance for your patience!
Daniele. Tag: Compilation in dot NET Tag: 116354
sync'ing an app
I'm new to Pocket PC development.
My Pocket PC recognizes our wireless nw.
How do I upload an app developed in VS05 to a Pocket PC 2003 SE ?
How do I sync SQL Everywhere .sdf files on the Pocket PC with a SQL Server
db located ? Tag: Compilation in dot NET Tag: 116353
POOM, appointments and Recurrence Patterns
Hi all,
Does anyone know if there is a clear explanation of how to fill out the
IRecurrencePattern object to match all the options which are given to the
user by the default interface?
Hope someone will be able to help.
Thanks
Simon Tag: Compilation in dot NET Tag: 116345
Pogress Bar in RAPI accessing the SD card.
Hi
I need to create a Progress bar to send one file to the SD card in the
Pocket PC. I need to show the progress related to the size of the file.
There is a method in RAPI called copyFileToDevice() but it blocks the code
until the file is over. I could not find a way to show the bytes transfered
to the device.
Any help here ?
--
Alberto Cardoso Tag: Compilation in dot NET Tag: 116342
How to access arguments passed by Systems.Diagnostics.Process.Start method in a mobile web page?
Hi,
I have a device application from which I wish to launch a web
application, and also pass some parameter. My lines of code look like
this in the device application on click of a button:
System.Diagnostics.ProcessStartInfo procStartInfo = new
System.Diagnostics.ProcessStartInfo("http://www.mywebsite.com/ref1/mobilewebpage.aspx",
txtInput.Text.toString());
System.Diagnostics.Process.Start(procStartInfo);
In my web application, I have written these lines of code on
Form_Activate event of mobile web page
string[] arg = Environment.GetCommandLineArgs();
if (arg[0] != "")
txtMobilePageInput.Text = arg[0];
But I am not able to get the actual value that is passed . Can anyone
help me in this??
Thanks
ASMJ Tag: Compilation in dot NET Tag: 116341
vertical menu in mainmenu (VB)
Hi
Do anyone of you know how to add menuitem vertically in mainmenu with VB?
Seemed that it only support create menuitem horizontally.
Thx
JC Tag: Compilation in dot NET Tag: 116339
[ANN] OpenNETCF Telephony Library 1.0 Beta
We are pleased to announce the beta release of our latest product, the
OpenNETCF Telephony Library. The library is a managed wrapper around TAPI
which enables your applications to interact with the phone stack in your
mobile or embedded device.
We are looking for a small number of participants to beta test the product.
Interested parties should contact support@opennetcf.com with the subject
"Telephony Library Beta".
--Neil
--------------------------------
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC. Tag: Compilation in dot NET Tag: 116334
Disable hardware buttons
Is it possible to disable all hardware buttons (just like the WM5 built-in
device lock does)? Using SHCMBM_OVERRIDEKEY can take care of VK_TTALK but not
other buttons. Any idea? Tag: Compilation in dot NET Tag: 116333
is it possible to call a .net assembly from a VC++ application
Hi all,
is it possible to call a .net assembly from VC++ application ? I am not
sure about this... just wanted to know. if possible then can anyone show me
any articles.
Thanks. Tag: Compilation in dot NET Tag: 116330
Training Videos
I have deployed several windows mobile applications for the various clients,
and normally that includes a day or two at their office to train them on how
to use the devices. I am looking for a training video that I can send out to
them prior to my arrival to shorten the trips down, and give them a basic
understanding of how to use the device.....any ideas????
Thanks
Mike Tag: Compilation in dot NET Tag: 116329
how to set SMS port ?
I want to send a text sms to a receiving mobile application which was
devloped by j2me, however j2me receceiving must have to know sms receving
port,.so i have no choice to solve the problem ,how can i set sms port in
WCE .any who have ideas ,please help me .thank you in advance. Tag: Compilation in dot NET Tag: 116323
How can i add a custom-built property into the message(mail or sms)
This is a copy from phone_edition group, and any better
suggestions???????
In my work, I need store some flags whick indicate some states of
every
message in tmail.exe. This flags should be persistent, namely these
data
shouldn't losed and can be take out after a while even if the
tmail.exe
process is killed.
I have tried the IMAPIProp::GetIDsFromName(..) API as following code,
but it
can't work because the PROPERTY TYPE returned by GetProps(...) is
PT_ERROR
Is there some error within the code segment? or can I use other ways
to
store those flags, for example the untapped properties or untapped
bits in
message state property ?
Many thanks for your advice.
//code begin
GUID gu = { 0x00020328, 0, 0, { 0xC0, 0, 0, 0, 0, 0, 0, 0x46 } };
MAPINAMEID hms; // a custom name in it
MAPINAMEID * pMAPINameID = &hms;
memset(&hms, 0, sizeof(MAPINAMEID));
hms.lpguid = &gu;
hms.ulKind = MNID_STRING;
hms.Kind.lpwstrName = L"CustName";
LPSPropTagArray rgStatueTag = NULL;
hr = m_pMsgItem->GetIDsFromNames(1, &pMAPINameID, MAPI_CREATE,
&rgStatueTag);
if (hr == MAPI_E_NO_SUPPORT)
MessageBox(NULL, L"MAPI_E_NO_SUPPORT", L"ERROR", MB_OK);
else if (hr == E_UNEXPECTED)
MessageBox(NULL, L"E_UNEXPECTED", L"ERROR", MB_OK);
else if (hr == MAPI_E_UNKNOWN_FLAGS)
MessageBox(NULL, L"MAPI_E_UNKNOWN_FLAGS", L"ERROR", MB_OK);
else if (hr == MAPI_W_ERRORS_RETURNED )
MessageBox(NULL, L"MAPI_W_ERRORS_RETURNED ", L"ERROR", MB_OK);
else if (hr == MAPI_E_TOO_BIG)
MessageBox(NULL, L"MAPI_E_TOO_BIG", L"ERROR", MB_OK);
else if (hr == E_INVALIDARG)
MessageBox(NULL, L"E_INVALIDARG", L"ERROR", MB_OK);
//get the prop type in rgStatueTag[0]
WORD wPropType = LOWORD(rgStatueTag->aulPropTag[0]);
//yihect 8.9 ; yes , the type of property is not specified.
//so need use GetProps() to get accurate property type.
if (wPropType == PT_UNSPECIFIED)
MessageBox(NULL, L"UNSPECIFIED PROP TYPE", L"warn", MB_OK);
//yihect 8.9 GetProps return S_OK in hr.
hr = m_pMsgItem->GetProps(rgStatueTag, MAPI_UNICODE, &uValues,
&rgStatueProp);
CHR(hr);
//determine the property type in rgStatueProp
//yihect 8.9 return type of PT_ERROR(10), not PT_SHORT
wPropType = LOWORD(rgStatueProp[0].ulPropTag);
if (wPropType == PT_SHORT)
MessageBox(NULL, L"PT_SHORT PROP TYPE", L"warn", MB_OK);;
//code end Tag: Compilation in dot NET Tag: 116322
eVC: Starting other app and writing a file
Hello
I'm normally a .NET-Coder für CF, so I am kind'a new to eVC.
I need a very small application which only function is:
Start
executing another application
writing a string "done" to a file in the same directory as the application
is
exiting...
in .NET it would be some few lines of code, but I just dont know enough C++
to do it in eVC...
If someone could give me the code for this, I would be veeeery happy and
thankful!
Sven Tag: Compilation in dot NET Tag: 116321
SMS Interception problem
Hi all,
i am using 'Microsoft.WindowsMobile.PocketOutlook.MessageInterception' class
to intercept SMS. works fine in my small UI application which continuously
intercepts sms. the problem is once i send the sms using
'Microsoft.WindowsMobile.PocketOutlook.SendSms' to send an SMS from the same
ui application where we intercept sms then no sms arrives. and once i close
the interception application then sms arrives.
what could be the problem?
one more thing ... i am using this in Germany. will this sending and
catching incoming sms works in Korean Mobile phone network?
regards,
rnv Tag: Compilation in dot NET Tag: 116320
Access to l2cap in windows mobile 5?
All,
I've been searching for some info, and so far haven't found a good answer
either way yet. Does anyone know if it is possbile to access l2cap functions
in the Windows Mobile 5.0 bluetooth stack?
We have an application ported to windows mobile that depends on l2cap
functions. It works fine on devices with the broadcom/windcom stack, since
they provide documented functions for access, but so far I can't find any
documentation about access to the l2cap layer in Windows Mobile bluetooth.
Any advice is greatly appreciated. Thanks,
-Andrew Tag: Compilation in dot NET Tag: 116316
Setting button caption with SetDlgItemText() is not permanent?
I created an MFC Pocket PC 2003 application with Visual Studio 2005.
1) I put a button on my dialog box whose caption was set to "Open"
on the propertied page.
2) After the user pushes the button I issue
SetDlgItemText(IDC_OpenClose,_T("Close"));
3) When the user pushes again I issue
SetDlgItemText(IDC_OpenClose,_T("Open"));
4) This toggling works fine.
5) If I issue the AfxMessageBox("Display Error") (or MessageBox()) from
some other event, the above mentioned button reverts back to "Open".
Note that "Open" was the original caption when the DialogBox was
created. I placed a breakpoint in the above mentioned button's
event handler to ensure that the application did not reset the caption.
It seems like the original caption is stored somewhere and repainted when
the AfxMessageBox() dialog closes. How do I solve? I am not an MFC expert.
--
WCSC (Willies Computer Software Co)
http://www.wcscnet.com Tag: Compilation in dot NET Tag: 116314
Windows Mobile Licensing
Hello :
Our company is currently studying the possibility of licensing and
shipping our embedded software applications on our own devices. Is it
possible to purchase licenses to deploy the Windows Mobile 5 platform
onto our own devices or is this privilege reserved for specific
partners such as Dell, HP, etc. ?
If so, any ideas on where I could find pricing info ?
Any information would be greatly appreciated.
Regards,
Mark. Tag: Compilation in dot NET Tag: 116313
VS2005: help finding ARM compiler in nmake
hi,
i'm compiling stlport for WinCE Mobile 5.0. stlport only comes with
nmake files, not sln or vcproj files, so i'm compiling it from the
command line in cygwin.
after setting what seems to be the necessary enviorment varaibles,
(PATH, INLCUDE, LIB, LIBPATH), to point to the VS2005 and Mobile 5.0
SDK directores, i can't seem to get this to find the ARM compiler.
when i first compiled this, i didn't realize that it was using the
wrong compiler, (or compiler options), and my project wouldn't link, as
there is an incompatibility between the ARM objects in my project and
the X86 objects in the newly compiled stlport lib.
when i have a project in VS2005 set for the Mobile 5.0 configuration,
and i look at the output when compiling a project, i see the following
line:
Compiling...
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
Copyright (C) Microsoft Corporation. All rights reserved.
cl /Od /Os ....
but nothing that i do on the command line with nmake will get me to
that compiler. i have searched for every cl.exe on the system, and
none of them give me the heading above. the closest thing i have found
in all my searching is the /QRarch4 command line option, but none of
the compilers on my system seem to recognize this.
can anyone give me a hand? where is the ARM compiler, or what options
do i give the regular compiler to compile in ARM format?
thanks,
mickm Tag: Compilation in dot NET Tag: 116312
Connecting to SQL 2000 from Mobile App
Hi all, im getting started on Windows mobile, i have worked with win forms
What im trying to do is:
Connect to sql 2000 server on my desktop pc from my mobile device
(emulator), populate a dataset and then save it as an xml file in my mobile
device to work with it offline. (I dont want to install sql mobile on the
device)
I have a code to connect to sql and populate a datatable wich is not working
from my mobile app, but IT WORKS ON WIN FORMS
Dim T As New DataTable("Alumnos")
'For the Data Source Ive tried: PCName and 127.0.0.1 (All of them work with
win forms but not with mobile app)
Dim conn As New SqlConnection("Data Source=127.0.0.1,1433;Initial
Catalog=alumnos;Integrated Security=True")
Dim da As New SqlDataAdapter("Select * from Alumnos", conn)
Try
conn.Open()
da.Fill(T)
Catch ex As SqlException
MsgBox(ex.ToString)
Finally
conn.Close()
End Try
The error i get is: "SQl server does not exist or access denied"
As I told you, the server exist and i get acces from Win Forms code
Ive read that some people who has had this problem was because they were not
using the ip address, ive havent been able to connect
Any suggestions?? Do i have to set iny parameters on the emulator??
I know my emulator is cradled and i still get an error
Alexei Rodriguez Tag: Compilation in dot NET Tag: 116311
Options for Real Time Reads/Updates from SQL Server
I am new to windows mobile development and my terminology is limited so bear
with me.
I am trying to find a solution that will allow a windows mobile device (upon
scanning a barcode) to get the current inventory from a sql server and allow
updating of the inventory to the sql server. It will also need to read/update
other misc fields. I will always have a wireless connection available. After
reading through similar posts and white papers, I understand that these are
my options:
1. Use ActiveSync (not an option because the data needs to be real time).
2. Use server side code and build an ASP.NET page for windows mobile device.
Consequences would be if the network went down the mobile devices would be
unusable.
3. Build an application for the mobile device and use web services to
read/update the data on the sql server.
I will have about thirty mobile devices connected at once, so I am lead to
believe option #2 will allow for easy updates and deployment.
Q1. Am I missing any options?
Q2. Can you suggest that one option is better than the other?
Thanks for your insight! Tag: Compilation in dot NET Tag: 116308
sample code for ISpRecognizerLite
Can anyone point me to sample code, a tutorial, whatever for using
ISpRecognizerLite? I want to use voice to navigate in , and check checkboxes
etc in my custom app for Windows CE 3.0/ Compact Framework.
Thanks Tag: Compilation in dot NET Tag: 116304
shell_notifyicon
Hi,
We create an icon almost at bottom of screen with shell_notifyicon.
The icon is placed at the right.
However, on a japanese Sharp WS007SH (Willcom) the icon is placed in the
left corner.
Anyone know why it's in the left side? Is it possible to decide if it should
be placed to left or to right? Tag: Compilation in dot NET Tag: 116303
Hi All !
Can any one know the compilation process of source code to MSIL in dot
net.