PPC Communications
Hi all,
I have recently started to code in ".NET Compact Framework" with C# for
PocketPC's. And I have some questions to you, Thanks in advance for your
answers!
1- What is the best communication way between a Server and a PocketPC in
different cities? Especially for an easy and reliable way (GPRS, SMS, Modem
etc.) for Web Services and file transfers.
2- Which system can I use for a file transfer between a PC and a PocketPC by
the side? ( "OpenNETcf" functions (DeviceToDesktop DesktopToDevice) etc. ? )
3- VS.NET 2003 and Compact Framework 1.0 (with Service Pack). Can I setup CF
2.0 on this system? Do I have to setup Whidbey for CF 2.0?
Thanks a lot for your interest. Tag: Create a Pocket Word File Tag: 101291
Wince.nls Windows Mobile 2005
I replace the wince.nls file in the windows folder but the system do not use
my file
does anyone know how to replace the NLS file?
Thanks
Micha Tag: Create a Pocket Word File Tag: 101288
WM5 Messaging fails to see attachments added through IMessage::CreateAttach
Hi everyone,
I am porting an email application from Windows Mobile 2002/2003 onto Windows
Mobile 2005. I have code for adding emails (possibly with attachments) to
the device email database. These messages are then viewed using the native
Messaging application.
With the WM5 I am facing the following problem: attachments added to the
email can not be opened/viewed. When you view the email list in the Inbox,
you can see different icons for all email that have attachments. When you
open such a message, the attachment is nowhere to be found. There is no
link, menu entry, icon or anything that could be used to open that
attachment.
In the code, I use the exact same IMessage::CreateAttach that used to work
on the older platforms. It doesn't work. I have created a utility program
that lists the attachment table from the emails. This works perfectly,
meaning that the code finds the right attachments from the email. I have
created code that lists the attachment tables from the emails, and further
reads the attachments from the email and copies them into the file system.
This also works: the attachment files can be found and opened through the
File Manager. So it seems that the attachment are there alright, but the
Messaging application has a problem finding/reading them.
Does anyone have any idea what could cause this? What first comes to mind
is that the first two parameters in IMessage::CreateAttach (which should be
ignored based on the documentation) need to be used in some way.
Any help is highly appreciated.
Br,
Mikko T. Tag: Create a Pocket Word File Tag: 101287
Writing files to iPAQ file store
Is there any trick to writing files to the iPAQ files store beyond getting
the directory from FindFirstFlashCard? In other words, can I just use the
CreateFile function, supplying the iPAQ File Store directory?
Thanks...
Dan Tag: Create a Pocket Word File Tag: 101283
Disabling all pop-up notifications programmatically.
I need to disable all pop-up notifications programmatically. I can see that
the user can do this from Start -> Settings -> Sounds & Notifications ->
Notifications but I do not know how to do it from code. I have found the
function SHNotificationRemove but I do not know how to find the CLSID and
the unique identifier of all possible notifications. Can anyone help me out?
Thanks in advance,
Per Rasmussen. Tag: Create a Pocket Word File Tag: 101280
Handango & a new developer product: PTDev, a blitter/sprite/sound library
Hi all,
Anyone selling stuff on Handango may wish to check
that sensible searches still find your product - they've changed
the rules regarding categories etc. in such a way that many items
no longer appear in a search.
As far as I know they never informed anyone of these changes
by E-mail - great client support or what ???
On the second topic, the first beta release of our development
library "PTDev" is due on the 17th - expect further news on this
shortly. A quick demo program created with PTDev will soon be
released via the microsoft.public.pocketpc.binaries newsgroup.
For further information:
http://www.parystec.demon.co.uk/
bye
Dave
http://website.lineone.net/~dave_makin/ Tag: Create a Pocket Word File Tag: 101276
wceloadsp.exe command line reference
Hi,
I'am using wceloadsp.exe to install cpf files using something like this :
wceloadsp.exe /silent /verifyconfig mycpffile.cpf
It works, however it delete the cpf file and I don't want (autorun.exe
functionnalities...)
If I mark the file as read only it is preserved, but I'd like to know if
there is a command line switch to use.
I was not able to find in the msdn library any help for this tool...
Thanks,
Steve Tag: Create a Pocket Word File Tag: 101275
Best Expired domain finder
Find expired domains with the best software:
http://www.antssoft.com
The best domain names are already taken. But with expired domain software you can find the best domain names like:
--------------------------------
http://www.beyx.com
http://www.c6d.de
http://www.fyq.us
http://www.gv0.net
http://www.j1o.de
http://www.aj0.net
http://www.3tt.de
http://www.3ss.de
http://www.aryh.com
http://www.qym.us
http://www.f6x.de
http://www.60n.de
http://www.7ix.de
http://www.k9m.de
http://www.4bx.de
http://www.9kk.de
http://www.bx0.net
http://www.0ol.de
http://www.w6x.de
http://www.xub.us
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =--- Tag: Create a Pocket Word File Tag: 101273
WM5 / VS2005: where are "remote spy++" and other tools for mobile devices?
I couldn't find any of the familiar external tools, like "remote spy++", in
Visual Studio 2005 Beta 2.
I suppose that now they must be installed manually in the VS2005 tools menu,
but I couldn't find them in the SDK.
Where can I find those remote tools? Tag: Create a Pocket Word File Tag: 101267
Development tools questions
I have been developing databases, video, audio apps using Borland Delphi.
Unfortunately there are very few tools to use for pocket pc. Which
development tools have a similar interface and structure to Delphi. egg
dropping components onto a form, similar syntax.
Are there any trials out there to see if my brain can handle the change.
Will apps run on smartphone and pocket pc unchanged?
What if any are the restrictions between a smartphone and a pocket pc.
Do you write an app and simply compile for 2003 / 2005 ?
Any help appreciated.
SteveW Tag: Create a Pocket Word File Tag: 101262
UI Design for PocketPC
Developing app for PocketPC using VB.NET
Want to implement a UI design that presents a list of application's files -
allowing user to specify file folders (option of All Folders or a specific
one) and specify a file's Type (option of All Types or a specific one).
Looking at two native PocketPC apps as examples:
Notes: Top section containing the form objects handling â??All Foldersâ?? and
â??Nameâ??
Contacts: Top section containing the form objects handling â??All Contactsâ??
and the text box
What device controls are used; how are they grouped into that top section;
and, what functionality do they have (what other design considerations
should be taken into account)? Tag: Create a Pocket Word File Tag: 101250
LSP on WINCE 4.2 (extremly painful)
Hi All...
I have asked this question on CE Live Chat, and been told that the only LSP
guy @ MSFT is in vacation... so Igor I hope you had lots of fun and enjoyed
your time:) Hopefully with a fresh mind after a good vacation you'll be able
to help us here...:) Well of course if anyone else can help it would be an
excellent news as well...:)
Make the story short, we've been able to run the LSP on WinCE 5.0 (CEPC)
successfully, thanks to your weblog.... However it has become a painful
(Verrrry) process installing our LSP on an actual CE 4.2 device (HP iPaq
h6320)... if I had a choice I would drop 4.2 entirely and continue with 5.0
but unfortunately there is no 5.0 in the market yet.
let's first ask the generic question
1. In MSFT docs, it says that Ws2.dll decides which LSP chain to use. so how
on earth it does this decision making when multiple copy of LSP exist. E.g.
I have (MYLSP/SSLLSP/TCP & SSLLSP/TCP & TCP) so how do I tell WS2.dll to
choose Mine vs. others)
here is the problem on our side
1. in CE 4.2 we have followed every step you suggested in your web but
amazingly enough we had nothing than problem.... we have even built an OS
image of 4.2 for PC and carefully selected the communication packages but
yet nothing... here is what we tried and what we got
A. on OS we chose One TCP & UDP without SSLLSP and we make sure that MYLSP
is the first one and only one to load over TCP and UDP. So we have 4 pairs
(MYLSP/TCP, MYLSP/UDP and TCP and UDP). When browser starts it gives "Can't
find DNS server)... we made sure no instance of internet explorer will be
running before our LSP installation
B. on OS we chose One TCP & UDP with SSLLSP. before we install our LSP we
got a printout of the chain. Interestingly enough there are 6 pairs (TCP,
UDP, SSLSP/TCP, SSLLSP/UDP and again SSLSP/TCP and SSLSP/UDP). And yes we
only chose the IPv4 no IPv6. so Why is there a 2nd copy with SSLLSP????
Now after we installed our LSP we have all the pairs but yet when all IE
opens up we still get the same "DNS" can't find thing.
Almost similar issues on the actual device.
here is the link which we followed how to install MYLSP on CE 4.2
http://blogs.msdn.com/cenet/archive/2005/02/09/370018.aspx
I would greatly & kindly appreciate any feedback.. advise... assistant...
Regards,
TA. Tag: Create a Pocket Word File Tag: 101236
CEMAPI Memeroy Crash
hi,ALL
I have write a project to Parse Inbox mail.
Everything works pretty good, if all the mail information is right.
However,If mail information is not right.when Application do Syncnization
with mail server.And when I do mail server connect, from callback message:
I can see message:Connecting...,Loging on...
and after I get the second Connecting...,
System crash.
Say:
Data Abort: Thread=9390b9bc Proc=902ea330 'Application.exe'
AKY=00400001 PC=03a9cd58 RA=01f76180 BVA=2e000008 FSR=00000007
Please help me.
Here is my mail SYNCSERVICE source:
CLogger::Record(L"(Message) Load mailtrns.dll.");
HINSTANCE hMailTrns = LoadLibrary( _T("MailTrns.dll") );
if(hMailTrns != NULL)
{
ONESTOPFACTORYFUNC pOneStopFactoryFunc =
(ONESTOPFACTORYFUNC)GetProcAddress( hMailTrns, _T("OneStopFactory") );
if(pOneStopFactoryFunc != NULL)
{
TRY
{
pSession = new CMAPISession();
BOOL bRet = pSession->Logon();
pMsgStore = pSession->CreateMsgStore(m_szServiceName);
hr = (*pOneStopFactoryFunc)(L"IMAP4", &pIMailSyncHandler);
if(pIMailSyncHandler != NULL)
{
hr =
pIMailSyncHandler->Initialize(m_pCallback,m_szServiceName,pMsgStore->GetStoreObject());
if(!FAILED(hr))
{
CLogger::Record(L"(Message) Mail synchronize handler initialized.");
SYNCCREDENTIALS sc;
sc.cbSize = sizeof(SYNCCREDENTIALS);
sc.cbBufSize = 0;
sc.pszUsername =L"UserName";
sc.pszPassword = L"password";
sc.pszDomain = L"";
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Do connect with mail server
hr = pIMailSyncHandler->Connect(0, &sc );
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.......
.......
.......
Here is MailSyncCallBackImplenment Source:
HRESULT CMailSyncCallBackImp::Progress(LPCWSTR pszProfile,SYNCPROGRESSITEM *
pinfo)
{
TRY{
if(pinfo->pwszStatusText != NULL && wcslen(pinfo->pwszStatusText) > 0)
{
CString strLog = L"(Message) ";
strLog = strLog + pinfo->pwszStatusText;
CLogger::Record(strLog);
}
return S_OK;
}
CATCH_ALL(e){
TCHAR szError[256];
e->GetErrorMessage(szError,256);
CString strError = szError;
CLogger::Record(L"(*Error*) Synchronizing service exception:
" + strError);
}
END_CATCH_ALL
return E_FAIL;
}
Thanks in Advanced Tag: Create a Pocket Word File Tag: 101235
Wifi&GPRS&Bluetooth in PPC2003
Hi all,
In PPC2003, I found one funny problem that only one wireless device can be
active among Wifi, GPRS, and Bluetooth. When I make a connection to GPRS,
Wifi device is shut down. In our application, we need both GPRS and Wifi
active at the same time. I did try to use IOCTL_NDIS_REBIND_ADAPTER to
activate the Wifi adapter again but it does not work. Can anybody tell me
how to either preventing an adapter from being unbound or re-activate the
adapter again after it is unbound? Tag: Create a Pocket Word File Tag: 101234
asynchronous web method failing -> System.Exception
I am creating a pocket pc 2003 application that consumes asychronous web
services. When the program begins, it invokes a series of these web
services. Each WS is called after the last one completes. The first two
methods are invoked successfully. The third method fails with a
SoapException:
"Server unable to process request. Exception of type System.Exception was
thrown"
It does not seem to make a difference which method is invoked, this
exception is always raised. I have tested on the emulator and on a device
with the same results. I have tested the web methods in their synchronous
form and they work fine. I have ensured that the web reference to the web
services is up to date. Does anyone have any suggestions on what might be
causing this?
Many thank,
Ollie Tag: Create a Pocket Word File Tag: 101229
Unable to Deploy and Application from Visual Studio
I am deploying to an HP HX4700 device. The OS Version is CE 4.21. I
can deploy for debug and the code functions correctly. When I copy the
CAB files to the device and try to launch the CAB from the device then
I get a message box telling me that the application was not installed
and to run setup again. Since there is no equivalent of Event Viewer
then I'm stuck as to what can be the cause.
I get the same message if I try to launch the CAB for the .NET Compact
Framework.
Any ideas please?
Thanks Tag: Create a Pocket Word File Tag: 101228
EVB3 debugging doesn't start on PocketPC2002 emulator
Hi , all
I've been using EVB3 with Pocket PC 2000 SDK on a PC
running Windows 2000 Pro without problems.
Now I have to move my development environment to a new PC
running Windows XP Pro and I decided to use Pocket PC 2002
from this point on (the target handheld devices are already
Pocket PC 2002 spec, so there should be no problems),
so I installed EVT3 with Pocket PC 2002 SDK.
Now I'm trying to run some test apps. Emulator runs fine,
but debugging never starts. Also remote file viewer and remote
registry editor can't establish connection to the emulator.
I didn't change any of the default configuration properties for
emulation. Isn't it supposed to run with default parameters set by
the installation ?
Could it be a compatibility problem between EVT3/PPC2002
and Windows XP ?
Any help on this would be appreciated.
Thank you very much.
Best regards,
Serdar Aytamaner
Istanbul, Turkey Tag: Create a Pocket Word File Tag: 101221
Problem with Manual Installation of the .NET Compact Framework
I can deploy a .NET Compact Framework application to my mobile device
and everything functions as expected. When I copy the .NET Compact
Framework CAB to the device and launch it from the device itself I get
the following error:
"Microsoft .NET Compact Framework was not installed succesfully.
Please run setup again.
Thanks Tag: Create a Pocket Word File Tag: 101215
check memory status in C#
Hi all,
does anybody know how should i check the memory status in C#? any sample
coding?
thanks.
--
Regards,
Venedict Tag: Create a Pocket Word File Tag: 101214
How to kill a process
Hi,
I search a way to kill a process on Pocket PC 2002.
What I want to do : call a dll or an executable in order to kill a specific
process, for example ("myprocess.exe").
Is there an API which can do this action ?
Thanks in advance for any answer. Tag: Create a Pocket Word File Tag: 101213
bubble notification question
html radio is working but i need to know how to notify the window
which radio input i choose...
link...
><a href="cmd:12345"
input button...
<input type='button" name="cmd:12345"
how about the radio?
(compiles fine but radio doesnt notify the window)
...
_shndata.pszHTML = L"<html><body>\
<input type='radio' name='cmd:12345' />option1<br/>\
<input type='radio' name='cmd:12346' />option2<br/>\
</body></html>";
SHNotificationAdd(&_shndata);
...
case WM_COMMAND: {
switch(wParam) {
case 12345:
MessageBox(0, L"option1", L"Notify", MB_OK);
break;
case 12345:
MessageBox(0, L"option2", L"Notify", MB_OK);
break;
}
} break;
thanks
-jun Tag: Create a Pocket Word File Tag: 101212
Start Menu side-effects on serial communication
Hello, I'm facing a strange behaviour that seems to be related to Start Menu
scroll-down / scroll-up.
Here's the context : my application uses a CompactFlash to serial adapter
(CF-232). It opens the serial comm. port (CreateFile, config set to 9600bps,
no flow control), then alternatively sends frames (WriteFile) on random
length (10 to 250 bytes) and waits for a response (ReadFile with total
timeout set to 1000ms and interval timeout to 100ms). On the other end of
the RS-232 wire, a simple test box echoes the bytes received. When the echo
is received correctly, my application displays a short message to say OK.
The application is written in C++ (eVC4, MFC shared, ARMv4 / PocketPC2003
target) and runs on various PDAs.
Here's the fact : when I let the application run alone, it runs OK for hours
on every PDA. Now when I click the Windows logo in the title bar (Start Menu
scrolls down), and click again (Start menu disappears), click again and
again say 5 to 10 times, the application hangs for a few seconds, and
reports a serial timeout error. After some investigation, I have four
certitudes :
- the WriteFile has runned OK (remove device has seen the whole frame)
- the ReadFile has missed so bytes (we were waiting for say 100 bytes, and
we have received only 30 or 40)
- the ReadFile has not taken in account the interval timeout (the
application hangs until total timeout is reached, whatever the interval is)
- this behaviour happens only when I "play" with the Start menu, "playing"
with SID or with hardware buttons has no incidence on the application (it
runs perfectly in the background, while user is working on Calendar or
Contacts or whatever).
I also have performed some tries in my code without success :
- running the communication in a background thread doesn't change a think
- changing thread priority as no effect at all
- running the application "quiet" (no display at all, only a blank window)
is not better.
The problem appears really easily on HP iPAQ hx2110 (even a 20-byte frame is
enough to freez the PDA), and has been confirmed on a few others iPAQ and on
an ASUS but with longer frames (ASUS doesn't freeze with less than 120
bytes).
So I'm totally stuck, removing the Start Menu (SHFullScreen) prevents the
problem but doesn't solve it. Does somebody knows something about the
consequences Start menu invocation on the running application ? Is there
something that can be done (priority, events handling, whatever...) to
correct this ?
Thanks,
Johann.D Tag: Create a Pocket Word File Tag: 101211
WM5 freezes after application termination
Hello,
we have an problem with an old PPC 2003 application using several DLLs, all
compiled with eVC 3.
The DLLs interact over a COM Interface and intensivly uses the TCP/IP
socket and heap memory.
Approx. 10 to 20 seconds after terminating the application the WM5 device
totally freezes and only a soft reset brings it back to life.
This only happens if we permanent uses the DLL functions for more than an
hour.
Additionally this problem occours only when using the DLLs with our
Application. Tests with other test applications does not have this effect.
But when we use the application without use of the DLL functions the
application terminates normal.
The Dlls and the application bases on MFC classes but only the DLLs uses COM
to interact.
Has somebody an idea where the problem could be?
Dirk Tag: Create a Pocket Word File Tag: 101210
ActiveSync Startup Parameters?
I have long synched my Dell Axim X30 wirelessly. It works great. But it
takes me 3 steps:
1. Turn on the WiFi.
2. Start Mobile ActiveSync.
3. Press the Sync button
What I'd like to do is write a little app that will take care of all these
things automatically. I've got everything figured out except #3. So I'm
wondering if anyone knows if there's a startup parameter I can pass the
mobile activesync program to make it automatically start synching?
--
Robert W.
Vancouver, BC
www.mwtech.com Tag: Create a Pocket Word File Tag: 101208
Registry Settings
Hi!!
If I have custom driver say MyDriver. If want to activate this driver
instead of default WAV driver at runtime without softreset, is it
possible with ActivateDevice().
Regards,
IPR Tag: Create a Pocket Word File Tag: 101207
Opennetcf signature control
Hi,
I am using VB.NET 2003 with the Opennetcf signature control. Code is listed
below:
Dim signatureBytes As Byte() = Signature1.GetSignatureEx
Signature1.Clear()
Signature1.LoadSignatureEx(signatureBytes)
Dim fs As New System.IO.FileStream("signature1.bmp", IO.FileMode.Create)
Dim writer As New System.IO.BinaryWriter(fs)
writer.Write(signatureBytes)
writer.Close()
fs.Close()
The information does pass into the variable signatureBytes because when I
clear the controls, it appears again perfectly. However it does not save to
the file. It does create the file but not save it. Any ideas anyone? Tag: Create a Pocket Word File Tag: 101204
SHSipPreference not working well on WM5 Pocket PC?
hi,
apparently SHSipPreference does not work well on WM5 Pocket PC (I tested
with the emulator).
for example, SHSipPreference(hDlg, SIP_UP), which should open the SIP panel
for a dialog, very often leaves it closed.
and yes, I checked that another call to SHSipPreference, e.g.
SHSipPreference(hDlg, SIP_DOWN), is not called subsequently for that same
dialog or any other of my window.
I don't have any problems on Pocket PC 2003 / 2003 SE, and problem this
seems to be specific to WM5.
It makes it very difficult to have a dialog that activates with the SIP
always opened (i.e. UP).
Is this a known issue? Tag: Create a Pocket Word File Tag: 101202
Beep on a Pocket PC?
After some searching I read that I could play a beep on a Pocket PC with this
code:
[DllImport("kernel32.dll")]
public static extern bool Beep(int freq,int duration);
The code compiles okay but when it's executed I get a
'System.MissingMethodException' error.
Any idea why?
--
Robert W.
Vancouver, BC
www.mwtech.com Tag: Create a Pocket Word File Tag: 101195
DirectDraw and Rotation
Hi,
Does anyone know that DirectDraw and screen rotation are absolutely mutually
exclusive?
Thanks,
Chester. Tag: Create a Pocket Word File Tag: 101192
Ok guys, you win...
Hi all,
Ok you win!
Listing on www.pocketpcheaven.com is totally free. No strings, catches
or trapdoors. No 2 for 1 offers or half price offers. Just 100% free.
The following categories below currently have no apps listed against
them so get along and list on the house if you develop these type of
apps for the Pocket PC.
My aim is to build www.pocketpcheaven.com into THE Pocket PC Software
site on the net so I have to start somewhere and your help would be
appreciated!
Thanks for your time,
Ruairi Glenn
Site Owner
www.pocketpcheaven.com
Audio
Aviation
Business
Data Management
Development
Educational
Engineering
Financial
File Management
Games Action
Games Arcade
Games Card
Games Simulation
GPS
Graphics Drawing
Graphics Viewers
Handwriting Recognition
Hobbies
Internet Chat
Internet Browsers
Internet Email
Internet News
IrDa
Medical
Miscallaneous
MP3
PIMS
Photography
Sales
Scientific
Shell
Sport
Sync Stuff
Travel
Updates
Utilities
WiFi Tag: Create a Pocket Word File Tag: 101191
Preventing Click and Hold Context Menu animation
Is there a way to prevent the animation (blinking circles surrounding the
point you are click and holding) from happening for particular controls? It
is annoying in a signature control. Thanks.
Timothy Dean Tag: Create a Pocket Word File Tag: 101190
Platform Builder Bluetooth C++ sample source code?
Can anyone post or email me the C++ Bluetooth sample source code that
comes with the WinCE Platform Builder?
I cannot seem to be able to find the download for Platform Builder
anywhere on the MS site. Do you have to pay for it?
I don't plan on building a custom device running WinCE but I do want to
take a look at the sample Bluetooth code since I am an application
developer writing code to exchange data using bluetooth.
It looks like all the examples out there are in C# and none in C++. I
need to work with C++ since that is what we use and all the docs on
MSDN refer to the samples in Platform Builder.
Can someone please help me out by posting or emailing the C++ bluetooth
sample code?
Thanks,
Abhinav Tag: Create a Pocket Word File Tag: 101189
How do I check & enable submenu items in Pocket PC App?
I have a pocket PC 2003 app written in MFC. Off the main menu, I have a
submenu with some items which need to be checked/unchecked and
enabled/disabled according to the current state of the app.
Sounds simple, right? You just add a COMMAND_UI handler and set it
appropriately, right? Unfortunately, wrong.
On Win32 that works just fine. But on the Pocket PC it does not. The
reason is because MFC relies upon receiving WM_INITMENUPOPUP messages
whenever the main OR the submenus popup. On Win32 it receives those
messages. On the PocketPC, it only receives WM_INITMENUPOPUP for the MAIN
menu popping up. Not for any of the submenus.
So I (and MFC) have no way of knowing that the user clicked on the submenu
or that the submenu popped up. So I have no way of knowing that I need to
check/uncheck or enable/disable the items on that submenu.
Can anyone guide me here? What do I do? Is there some setting I can flip
on the window/menu to allow me to be alerted when the user has clicked a
submenu?
Thanks
-Joe Tag: Create a Pocket Word File Tag: 101188
Converting WinCE 3.0 to WinCE.net
Hello folks,
I have a problem of runnung application, written in
embedded WinCE 3.0 on WinCE.net device.
When i start , it says "Cann't find _MyApp_ or one of it's components.
Make sure the path and filename are correct and that all the required
libraries
are avasilable" and doesn't run. It runs pretty good on regular
PocketPC device
with untill to 2003 OS (like IPaqs etc).
As far as i understand my app wants some 'system' dll, that is not
available on
WinCE.net device.
I read that CE 3.0 apps should run on CE.net, but it doesn't.
Question :
How to know what dll to supply or is there any other solution ?
Yours
Dimitry Farberov. Tag: Create a Pocket Word File Tag: 101185
How to center a [smaller] form on a Pocket PC?
I have a small dialog box that I'd like to center on the PPC's screen. So in
the constructor of this form I added this code:
Size size = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size;
this.Left = (size.Width - this.Width) / 2;
this.Top = (size.Height - this.Height) / 2;
Horizontally everything works perfectly but vertically the form is shifted
way too far to the top. Why is this and how do I correct the problem?
--
Robert W.
Vancouver, BC
www.mwtech.com Tag: Create a Pocket Word File Tag: 101184
WCE vs PPC
Could someone explain to me the exactly difference between Windows CE and
Pocket PC?
Besides, I would like to use Mio 286 (Windows CE 4.20) like a PPC: is it
possible? In other words: can I install cab file into it?
Mhaxx Tag: Create a Pocket Word File Tag: 101183
Flight mode
Hi,
I have a question as to if we can prevent the user from turning on the
flight mode programaticaly on pocket pc 2003. Any ideas are greatly
appreciated.
Thanks in advance,
-Jimmy Tag: Create a Pocket Word File Tag: 101182
issues with another instance of running application
Hi there,
I am using one shell extension handler. This shell Extension handler
allows to add file in my application (when right click on that file).
Now My problem is that When first time I right click any file and click
on add to My app, My application successfully runs and that file gets
added in my application. so my application is running. Now When I right
click another file to add in my Application, I want that this another
file also gets added to previous running application, i.e. I want
single instance of My app running.
So what I did in my code as follows : -
HANDLE handle = CreateMutex(NULL,FALSE,"MyApp");
if(GetLastError() == ERROR_ALREADY_EXISTS)
{
CWnd *pWndPrev ;//, *pWndChild;
CWnd *pWndChild = NULL ;
if (pWndPrev = CWnd::FindWindow(NULL, "MyApp" ))
{
pWndChild = pWndPrev->GetLastActivePopup();
if (pWndPrev->IsIconic())
pWndPrev->ShowWindow(SW_RESTORE);
pWndChild->SetForegroundWindow();
}
return FALSE;
}
This code works fine , it allows to run an already running instance.
But This new instance is having all previous instance values for the
variables. I want to supply new arguments to all variables so I used
PostMessage(WM_COPYDATA....
But then again it is using previous instance variables.
so can anyone plz help me out in this situation.
Waiting for quick reply.
Thanking you.... Tag: Create a Pocket Word File Tag: 101175
Read the parameters of the WIFI connection
Hello,
I'm making a program with Embedded Visual C++ for reading the parameters of
the WIFI connection.
On the net and MSDN, I have found this code :
hDevice = CreateFile( TEXT("NDS0:"), 0, FILE_SHARE_READ,
(LPSECURITY_ATTRIBUTES) NULL, OPEN_EXISTING, 0, (HANDLE)
INVALID_HANDLE_VALUE);
if (hDevice != INVALID_HANDLE_VALUE)
{
// Query the device for its type
NDIS_OID OidCode = OID_GEN_PHYSICAL_MEDIUM;
ULONG ulOidPhysicalMedium = 0;
ULONG ulBytesReturned = 0;
DWORD dwBytesOut = 0;
BOOL bResult = FALSE;
SetLastError(0);
bResult = DeviceIoControl( hDevice,
IOCTL_NDIS_QUERY_GLOBAL_STATS,
&OidCode,
sizeof(NDIS_OID),
&ulOidPhysicalMedium,
sizeof(ULONG),
&ulBytesReturned, NULL );
(...)
}
During the execution, hDevice is a valid handle, but DeviceIoControl returns
false (and GetLastError returns C0000001).
Do you know why ? I have searched the web and MSDN and forum ... and I
haven't found.
PS : I'm using Embedded Visual C++ 4 and Pocket PC 2003
Thank you for your answers ... Tag: Create a Pocket Word File Tag: 101173
Trouble Displaying Modal Dialog Box
I'm having a horrendous time trying to display a little dialog box over top
of my main form. The dialog in question is something I want to display right
at the beginning if the user hasn't previously entered some Name info. But I
want it to sit on top of the primary form, which is a main menu / title
screen.
But I've tried everything I can think of and either keep getting it
displayed full screen, which I don't want, or displayed without any border,
which I don't especially want.
Maybe it's because it's late and I'm tired but I just can't figure out why
it's so difficult to display a simple dialog box on my Pocket PC?!?
--
Robert W.
Vancouver, BC
www.mwtech.com Tag: Create a Pocket Word File Tag: 101168
Registry Settings for Pocket PC
Hi!!
If we change the registry settings of pocket pc (say the default
driver is changed for a new one) then is it necessary to reset the pda.
Is there any alternative so that we can the reset of pda.
Thanks & Regards,
IPR Tag: Create a Pocket Word File Tag: 101167
Backlight Question
Hello all,
I am writing a backlight driver for Magneto, and am lost on how to update
the activity timers if a user goes in an changes the values in the control
panel. I created thread to monitor the values, and can get them in the
driver - but then what?
My backlight driver is only responding to the power manager, is this
incorrect? Shouldnt the control panel applet call the power manager with
updated power requirements?
Thanks for any help. Tag: Create a Pocket Word File Tag: 101160
CAB installer on WM5 PPC does not check PlatformMax correctly!
BAD NEWS:
The CAB installer on WM5 Pocket PC does not test correctly PlatformMax :(
It installs without any warning any CAB file that has PlatformMax >= 4.0
(instead of
5.0!).
(if PlatformMax < 4.0, the CAB will not install on WM5 - so yes, I know that
my [Platform] section is taken into account by cabwiz.exe - the problem is
in the WM5 CAB installer on the device)
This is a bug!
The CAB installer on WM5 should refuse to install any CAB that has
PlatformMax <= 5.0, since the OS version of WM5 is 5.01.
This is very bad news, as it will probably make it impossible, even when
using the new [Platform] section in the .inf file, to create an setup file
that contains at the same time a CAB for Pocket PC 2003 and a CAB for WM5.
The problem is that the two CAB are candidate for installation on WM5, so
there is no guarantee which one will install. Unless the CAB installer part
on the PC is smart enough to select the correct CAB, and I have not tested
this yet.
But this is definitely a bug in the CAB installer on the WM5 device. Tag: Create a Pocket Word File Tag: 101154
How to Set a Directory to have Readonly Attribute
Hi
I need to make a directory Programmatically Read-only.
I tried to use SetFileAttributes(). This function will not work for
Directory
I tried to use CFile::SetFileStatus(). It also does not seem to work for
Directory.
Does anyone know how I could make a Directory to have Read-only Attribute?
My code looks like
if (CFile::GetStatus(tFileName, status))
{
status.m_attribute |= CFile::readOnly;
status.m_mtime = 0;
CFile::SetStatus(tFileName, status);
}
Thanks for your help in Advance.
Shankar Tag: Create a Pocket Word File Tag: 101152
Why won't DataSet work in DLL?
I've come across a strange occurrence. In my CF app, if I use the following
line it works fine:
DataSet dataSet = new DataSet();
But if I include the same line in a method that resides in a DLL (that's
shared by both a WinForms app and a CF app) then I get a
'System.TypeLoadException' when I try to execute the method from the CF app.
I'm including System.Data in both places.
If I didn't know better, I'd think that the DLL is being compiled for the
WinForms app and that there's some difference with DataSets between the two
platforms. But surely that can't be true?!?
Any idea how I can resolve this problem?
--
Robert W.
Vancouver, BC
www.mwtech.com Tag: Create a Pocket Word File Tag: 101148
An easy way to corrupt Windows Mobile 2002/2003 device
This line of code:
CreateFile(_T("\\Windows\\cplmain.cpl"), GENERIC_READ, 0, NULL,
OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
results in completely empty Today screen and full removal of all system
(except for OEM and custom-installed) items from Settings menu after
soft-reset.
This is rather a curious fact, still I find it interesting enough.
Mikhail Barashkov
Handydev
http://www.handydev.com Tag: Create a Pocket Word File Tag: 101147
slow start-up for emulator
Folks,
I am using the Windows Mobile 5 Pocket PC emulator with VS 2005 beta 2. When
I try to debug my application to the emulator, it takes a long time for the
application to start up. A lot of this time is taken up by deployment, and
specifically, deployment of several sqlce related cabs. It seems that I could
install the sqlce cabs once, and then not have to deploy them each time the
application is started. This should greatly reduce start-up time. How can I
make this happen?
TIA,
Matthew Fleming Tag: Create a Pocket Word File Tag: 101140
Hi,every one
I want to write a project to create Pocket Word Formatter file
How to do it?
What is Pocket Word Format?