Re: Creating a service
- From: "Robert Holmes" <RobertH@xxxxxxxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 11:00:50 -0400
Simon,
No, I am not able to map the drive manually from File Explorer on the
device. I went into Open Path -> New Path from the menu, then input
\\ipaddress\sharename, but when I try to access I get message boxes that say
'The network path was not found', then 'Network resource was not found or
you do not have permission to access the network', the same as when I map
from code then try to access the mapped drive. I went to a colleague's
machine and he could map the drive from his machine just fine, then explore
it.
I apologize for my ignorance, but this is my first foray into Pocket PC
programming. I do not know what to do on the device, or my local machine, to
allow the mapping to occur.
Thanks in advance for your help.
- Robert
rholmes[@]mywebgrocer.com
"Simon Hart" <srhartone@xxxxxxxxx> wrote in message
news:udIX4qopGHA.516@xxxxxxxxxxxxxxxxxxxxxxx
Can you access the desktop share from within File Explorer on the device?
ie: \\192.3.0.45\myshared Folder. Note: Use the IP address instead of
NETBios name to avoid DNS issues.
I must admit I usually use Web Services for this kind of thing. But what
you are trying to do is fairly basic so should work.
Regards
Simon.
"Robert Holmes" <RobertH@xxxxxxxxxxxxxxxx> wrote in message
news:Oqiu1OgpGHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the reply Simon. I have heard that it is easy to do this in
WM5 and managed code, but so far have failed to make it work. The
WindowsMobile.Status namespace can tell me when I am connected, but I
have not seen how I can access the host machine's file system,
particularly public shares. I tried the library from the OpenNETCF, and a
couple of people from there, Alex and Chris, have been very helpful about
it, but it does not work so far for me. I have tried multiple variations
on Network.MapDrive (always get number 53, PAT_NOT_FOUND errors, and
GetConnectedResources (I always get 'System.ArgumentException: The
parameter is incorrect.').
My strong preference is to handle it form the device side, but it seems
that I have no choice but but to handle it from the host side. Any ideas?
"Simon Hart" <srhartone@xxxxxxxxx> wrote in message
news:uxact7epGHA.4424@xxxxxxxxxxxxxxxxxxxxxxx
In addition to using RAPI, if you want to drive this from the device
using WM5 you can use the Microsoft.WindowsMobile.Status namespace. In
particular the SystemState class to trap core Windows CE events. WM5
makes this easy in managed code.
Regards
Simon.
"Robert Holmes" <RobertH@xxxxxxxxxxxxxxxx> wrote in message
news:eZldopdpGHA.2292@xxxxxxxxxxxxxxxxxxxxxxx
As an alternative to that would it be possible to have an application,
or service, on the host respond to a connection event. In other words
could I install something on the host computer, that will take some
action when a device gets cradled?
thanks in advance
"<ctacke/>" <ctacke[@]opennetcf[dot]com> wrote in message
news:uVYU9HcpGHA.4408@xxxxxxxxxxxxxxxxxxxxxxx
It's going to have to get run once in some manner, whether that's by
user action, autorun froma card, run from a setup, placed in the
\windows\startup folder or whatever. Once run, the app can handle
notifications from that point on.
A sevice wouldn't be much different, as it has to get registered and
started somehow.
-Chris
"hammerstein" <terryburnsdyson@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:1152714451.920178.197560@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for the guidance. Just another question,
My main application is a client of a server on a local PC, I want
that
to be able to be started by the user. However, I want an application
to run when they dock the device (not using Activesync at all as
there
will be four devices connecting). The application will make a socket
connection to my server, and then begin transferring data, locking
out
the main application. I don't want to make the monitoring application
accessible or visible to the user, nor do I want them to have to
start
anything.
How would I run the application to monitor the status of the AC
Power,
I can't quite understand that part. Is it possible?
.
- References:
- Creating a service
- From: hammerstein
- Re: Creating a service
- From: <ctacke/>
- Re: Creating a service
- From: hammerstein
- Re: Creating a service
- From: <ctacke/>
- Re: Creating a service
- From: Robert Holmes
- Re: Creating a service
- From: Simon Hart
- Re: Creating a service
- From: Robert Holmes
- Re: Creating a service
- From: Simon Hart
- Creating a service
- Prev by Date: Re: Creating a service
- Next by Date: Any upcoming conferences for mobile development
- Previous by thread: Re: Creating a service
- Next by thread: Which is the diference about using Socket or TcpClient ?
- Index(es):
Relevant Pages
|