MSMQ on Compact Framework

  • Thread starter Thread starter Bob H.
  • Start date Start date
B

Bob H.

Has anyone tried to write a wrapper around the MSMQ Win
API for the compact framework? I need to write a wrapper
that uses P/Invoke to access MSMQ, but I'm not really
sure if it can be done in C#, or if it has to be done in
embedded C++. Any help would be appreciated. Thanks!

- Bob
 
It must be done with a mix of C++ and C#/VB.NET. I think OpenNETCF has a
start, but it's not released.

-Chris
 
Any idea of when that is to be released?
-----Original Message-----
It must be done with a mix of C++ and C#/VB.NET. I think OpenNETCF has a
start, but it's not released.

-Chris




.
 
It's not my project, so I've got no idea. As with everything in OpenNETCF,
we work on an as-we-have-time basis, so it's tough to make any predictions.
If you've got a hard and fast deadline, you should consider rolling your
own.

-Chris
 
Bob,

It _can_ be done in C# only, but it's not trivial.

You would have to allocate memory for MSMQ structures as arrays and
manually populate these arrays with data you need.
Since MSMQ structures contain plenty of pointers to other structures, you
would have to pin managed arrays representing these structures while in use
by MSMQ and unpin them later.
It's not very complicated, but you'd have to be very careful or memory leak
will follow or MSMQ could fail if data is moved by GC while native MSMQ is
using it.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
Back
Top