Alex Yakhnin said:
This is not a trivial task due to limitations of the marshaler in the CF.
You could use a ready solution (
www.intelliprog.com/netcf/ras.html)
or try to mashal the appropriate structures manually. Take a look at this
article:
http://www.opennetcf.org/PermaLink.aspx?guid=abe6694a-ff15-4617-a21f-8163d427a89c
Hallo,
I had the same task to do. Writing some RAS Dial in VB.Net. My advice
is. Forget it!!, too, too difficult!! I wasted weeks on this nonsense.
P/Invoke on the Pocket PC sucks. I have no understanding why this
Microsoft developers did not include some good P/Invoke capabilities.
(They know that CF is very limited in functionality itself, so at
least they should have provided some good P/Invoking). In my case I
had to port my existing ATL/COM dll (from my evb times) into a normal
c++ dll (Yeah I lost all my nice events, but at least it dials :-( )
and call the functions from vb.net. Yeah ATL/COM is not supported by
VB.NET either. Maybe sometimes the good guys in OpenNetCF have mercy
with us poor RasDial (Microsoft) victims and provide a wrapper which
works
Maybe, if you got budget you could give Peter Foots control a chance.
(We are not allowed to use third party controls at my job - against
company policy :-( )
Sincerely
Chris
Bangkok/Thailand
How many billions of dollars get lost worldwide per year because of
bugs / limitations in Microsoft Software?