ANN: OpenNETCF.Desktop.Communication 2.1 Released

C

Chris Tacke, eMVP

Good news! OpenNetCF.org has released v2.1 of the
OpenNETCF.Desktop.Communication Library.

The Desktop.Communication Library contains classes used for communicating
with a CE device from a PC such as Microsoft's Remote API (RAPI).

We've again made some major changes to the library.

We've added an entire ActiveSync class that provides access to ActiveSync
events plus hooks for some undocumented ActiveSync features such as
AutoStarting applications.

Get the source and binaries here:
http://www.opennetcf.org/communication.asp

An updated sample is available here:
http://www.opennetcf.org/samples.asp

All OpenNETCF.org libraries are covered by the OpenNETCF Shared Source
License. For more information visit:
http://www.opennetcf.org/License.asp
 
G

Graham McKechnie

Chris,

Thanks.

I was about to post a bug in DeviceFileExists - should be CeCloseHandle, not
CloseHandle. Did you get that one?

Graham
 
M

Matteo Cima

maybe i'm just an idiot... but rapicsharp sample always gives me "device not
present" error...
but it's present, via activesync i can browse all the files in the device.
From both ppc and ce.net 4.1
i am sure i am using opennetcf rapi 2.1

any help appreciated...

<melodramatc voice>
i am really getting tired of this, i don't think i have a "special" setup...
and my boss is gonna fire me 'cause i am the one who decided to use cf
instead of evc... and this inability of transmitting (and printing, btw) is
a very big problem for me (us), 'cuz is taking **way too long** to solve.
i understand this is not an opennetcf issue, i am grateful to the opennetcf
team that is trying to fill holes microsoft left behind and "forgot", but
the compactframework is still in beta and sold as a "complete solution"!!!
Too many features not working or just missing.
I am really discouraged.
</melodramatc voice>

thanks for your patience
Matteo Cima, Italy
 
G

Ginny Caughey [MVP]

Matteo,

We don't want you to get fired! Which version of ActiveSync are you using?
Have you tried stepping through the Rapi code in the debugger?
 
M

Matteo Cima

The problem is that RAPI.m_devicepresent is never assigned to true in all
the project...
i created the set part
public bool DevicePresent
{
get
{
return m_devicepresent;
}
set
{
m_devicepresent = value;
}
}

and in
private void ActiveSync_Active()
{
status.Text = "Connected";
m_rapi.DevicePresent = true;
}

private void ActiveSync_Disconnect()
{
status.Text = "Disconnected";
m_rapi.DevicePresent = false;
}

private void ActiveSync_Listen()
{
status.Text = "Not connected";
m_rapi.DevicePresent = false;
}

private void ActiveSync_Answer()
{
status.Text = "Connecting...";
m_rapi.DevicePresent = false;
}

put the valorization...
or maybe the rapi should test the "connected" property instead of
m_devicepresent... if it's connected... well, to what otherwise to device?

btw, i use activesync 3.7 (build 3083)

Hope this helps,
Matteo Cima.
 
C

Chris Tacke, eMVP

I'm with Ginny - what AS version are you using, and definitely step through
the code to see what's going on. I tested against AS 3.6 and 3.7.1, but
there are lots of possibilities for complications.
 
C

Chris Tacke, eMVP

It shouldn't be up to the app to set the device present status, it should be
the lib. Somehow I missed that. Try removing your ctor and then adding the
following:
public RAPI()
{
m_activesync = new ActiveSync();
m_activesync.Disconnect += new DisconnectHandler(activesync_Disconnect);
m_activesync.Active += new ActiveHandler(m_activesync_Active);
m_activesync.BeginListen();
}

private void m_activesync_Active()
{
m_devicepresent = true;
}

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net
 
M

Matteo Cima

great,
yes, the code i added was just for on-the-fly testing.
Thank you!
Matteo Cima.
 
C

Chris Tacke, eMVP

Let us know how it goes. I'll hold off releasing with the above fix until
you've run it through it's paces so we don't end up revving a boatload of
versions in a week.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net
 
M

Matteo Cima

ok, now i'm gonna implement this into my app.
I'll keep the newsgroup aware on how it goes.

Thanks for your support!

Matteo Cima.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top