Thanks to Paul and Chris: your comments are very important for me.
I'm new to WindwsCe system.
I have the platform builder for WindowsCE .NET 4.2 so itsn't a problem
create a new os image.
I have some points to discuss with you:
1) When you think i have to use a service instead a normal program ?
2) I would like to use .NET CF for my coding because i used the Visual
Studio .NET and the .NET Framework but i'm new to evc++ and the winapi
programming and i think that for the future the way will be on the .NET CF.
So i try to use .NET CF but, of course, if it's not possible i will start
learning c++ and win api programming, in that case have you some suggestion
? Articles, links, ecc... ? SAMPLES ?
3) Probably i have to comunicate only either via serial port or network so
the direct access to hardware is not a must for me and, and if i need it i
can wirte a small dll to access the hardware and call it from .net code.
4) a good advantage of .NET code is the portability accross platform.
5) i have to create something like an industrial controller, the productoin
envionment will have more than one of this devices, these devices have to
comunicate each others trough the ethernet network so i think to create on
it a program that manage the logic of the controller and can comunicate with
the others controller trough the netwotk via something like web service. (i
hope that my description is clear enough)
Thanks again
Andrea Adami
Paul G. Tobey said:
I've done all of those things in an industrial controller based on x86 and
there's no reason at all to do them in a service. You can easily create a
scheme to start and stop your 'service', whether it's based on C/C++ or .NET
CF (a named event which you can set to stop things is quite easy, and anyone
can call CreateProcess() to start a program). I have some more specific
responses, also:
1) You can do this in eVC or in .NET CF. This is a wash; no advantage to
.NET CF or to eVC.
2) Certainly that's true. You might count eVC as the winner here, though,
given that it's free. What's your reason for wishing for VS integration?
Maybe I'm missing something.
3) I would not say that this is true, for your application. Direct access
to hardware is far easier from C/C++ than it is from managed code.
For your application, I'd use eVC. You can do everything that you've
mentioned and it's relatively easy to do. Don't forget that, unless the
controller already has Windows CE.NET 4.2 in it, you'll need to purchase
Platform Builder in order to generate an OS for the controller and that
makes this a *much* bigger project.
Paul T.
Andrea said:
I have like an industrial controller for home automation, the hardware is
x86 based.
I want use Windows CE .NET 4.2 as O.S.
I have to write a program that start when the device start
the program job is a loop to read data either from serial port or http,
manage it, and write it back to either serial port or http.
I think the best way is write a service so i can start and stop it
from
the
telnet
I would like to write it in .net cf because:
1) debug at source level
2) best integration with visual studio
3) more easier than ec++ 4.0
4) i think that the .net cf is the future
What do you think ?
Andrea Adami
"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument_no_spam.com> ha scritto
nel messaggio A 'service' is a DLL with a certain set of exported functions whose names
follow a convention. I think that you cannot write a service in
..NET
CF.
Further, I don't believe that you can really call a .NET assembly
from
an
eVC++ program, either.
Maybe, if you told us what you wanted to do, rather than how you
want
..NET