Chris
Sun Apr 27 17:30:57 CDT 2008
Why on earth would you P/Invoke anything for sockets? Managed code has full
socket library implementations.
The fact you're asking if MFC is unmanaged (and the proper term is "native"
not "unmanaged") simply shows that you still don't really have a grasp on
what the two are and how they differ. Managed and native code are totally
and completely different, and until you spend a little time researching
these *on your own* you're simply never going to get anywhere. You're just
asking lots of questions that have no relevance and apparently wasting time
trying to do tasks that are useless. I can only hope you're doing this on
your own time and that there isn't some poor employer paying you to waste
time and not learn anything.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"garlic" <garlic@yahoo.com.sg> wrote in message
news:5379D505-FE85-4D03-BD20-9E74BE90CC4C@microsoft.com...
> WinSock development for WinCE is not totally similar to that on the
> desktop.
> WSAAsynSelect used to notify Windows Message Handler for a socket event is
> missing in WinCE. Thus i thought of using CCeSocket in MFC
>
> Using dllimport marsaling is not difficult at all. i just need to state
> the
> name of the dll and the entry point (function name) and convert its
> initial
> parameter to managed parameter. Can i dllimport MFC code like win32 API. I
> am
> afraid it will become messy and wonder if Managed Code can handle.
>
> I know i need to pin the unManaged pointer so that GC will not Garbage
> Unmanage heap memory although it will halt the safe code from running. I
> can
> consider MFC code as unmanaged too, right?
>
> I have no problem installing V, X on the devices platform ( i think they
> are
> supported on WinCE), but i think managed code is easier and faster to
> code. I
> don't think speed different can be detected with human eye.
>