VS.NET 2003, CE.NET 4.2, MSMQ

R

Russ

I am a C# developer using VS.NET 2003, I have recently started
developing using the .NETCF. I am currently writing and application for
CE.NET 4.2.

I have the latest .NET CF Service pack (3) installed.



One of my companies requirements is to use MSMQ as the communication
layer between the device and the Server.

The reason is that we are in deepest Africa and the device may lose
connection many times during the day.



I cannot get MSMQ to work between the Device and Remote Server, I have
downloaded many examples but they are in C++ or eVB and I am not that

Experienced, to port the code. I would like to know the following:



1) Is it possible to create a working MSMQ application within
this environment.

1.1) If Yes can you provide me with a sample code to send and read a
MSMQ message in C#

1.2) If No can you provide me with possible alternatives for a solution



I am currently trying to get the pinvokes for the api working from one
your posts on "OpenNetCF.WIKI" Articles --> Point to point message
queues.

The only function that may be working is CreateMsgQueue - (This is
because I get a value from this function).

The rest fails.



Your help and time is greatly appreciated.



Thanks,

Russ Du Preez
 
C

Chris Tacke, MVP

The P2PMEssageQueue is for on-device use only (i.e. for IPC). MSMQ has no
CF 1.0 wrapper, so it must be all P/Invoked, and it's a large task. We did
begin work on it, but abandoned it becasue CF 2.0 now supports MSMQ
natively. Your simplest path forard is to move to CF 2.0

-Chris
 
R

Russ

Thanks, but unfortunately I am using a Radix FW700 and they only
support "CE.NET 4.2".

Any Ideas on a way forward?
 
C

Chris Tacke, MVP

If it has to be MSMQ, roll up your sleeves and get intimate with P/Invoke or
hire a contractor.

-Chris
 
R

Russ

No CF 2.0 is not an option, because we are dependant on the device. The
device manufacturers only support CE.NET 4.2 at this time.

Russ
 
M

Miguel

If it is only used for sending MSMQ messages, I can send you my
P/Invoke source (written in VB.NET).

Kind regards
 
R

Russ

I just saw the blog today :) Whooohooo!!!
Will hopefully sort out alot of problems on my side.

- Unfortunately I still have to get this up and running

I read that it will only have runtime support, does that mean that we
won't be able to debug it in an emulator?
 
C

Chris Tacke, MVP

Debug it on a 5.0 device/emulator, and only do final testing under 4.2 (when
it will suck with no debugger).

-Chris
 
I

Ilya Tumanov [MS]

Yes, VS 2005 won't support CE 4.2 devices officially.

However, it does not mean it would be disabled and it does not mean it won't
work in your specific case.


--
Best regards,

Ilya

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

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

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

Similar Threads


Top