Reinhold
Thu Jul 29 10:25:48 CDT 2004
Hello Rick,
yes, i guess you are right. Learning C# is indeed a good idea. .NET is
Microsoft's new strategy for developing web- and windows-apps.
Recommending a good information hub about C# is difficult, because there is
lots of information in the web and there are a lot of good books. I've read
"Inside C#" from Microsoft press and found it very usefull. But i think it's
perhaps not the best book to start with.
Visual Studio.NET is in my opinion rather intuitive. So if you are a
experienced developer - the language doesn't matter - you should have no
problems using VS.NET.
C# programs are compiled, but not to native code as C++, but to a special
kind of intermediate language - MSIL.
That's why you need a "special runtime" (like the Java VM) on your client.
In .NET it's the Common Language Runtime (CLR). A "Just-In-Time-Compiler"
(Jitter) compiles MSIL to native code and executes the app. So the model is
comparable to the Java approach.
The Jitter maintains caches to hold the native code. So in the lifetime of a
.NET app every MSIL-statement is compiled only once. The Jitter always
compiles on a "method-basis", so it looks a little bit ahead, gaining
performance.
Hope this information helps clearifying some things.
Reinhold
PS: Sorry for my bad english.
"Richard Wessels" <rorw@msn.com> schrieb im Newsbeitrag
news:udOzawXdEHA.3664@TK2MSFTNGP12.phx.gbl...
> Danke
>
> That was extremely informative and helpful. Can you direct me to more
> information about C#? I am actually a little interested in maybe learning
> this language. I despised Java and still do. I know that MS plans to
phase
> out all VB in the not to distant future. So maybe learning C# now would
be
> a good idea. Would I have to have the entire Visual Studio .NET package
> just to learn and program in C#?
>
> One last question. Are C# programs compiled? Or are they sort of
> constructed the way Java apps are?
>
> Rick Wessels
>
> "Reinhold Schalk" <ReiSchalk@gmx.de> wrote in message
> news:u6Lt%23cXdEHA.4004@TK2MSFTNGP10.phx.gbl...
> > Of course your're right: indeed you do need to .NET Compact Framework to
> run
> > a C# app on a WM2003 device. But that's no problem, because WM2003 has
> > already .NET CF in ROM. So the potential end-user does have it already.
> >
> > And - of course C# is an actual programming language.
> > In my opion it's the best programming language, i had to deal with until
> > now.
> >
> > The problem i see using C# in web scenarios is "no-touch deployment".
This
> > simply does *not* work under Pocket PC. For no-touch deployment, you
need
> a
> > browser on client-side, which is able to host the .NET CLR - and PIE can
> > not!
> >
> > Reinhold
> >
> > "Richard Wessels" <rorw@msn.com> schrieb im Newsbeitrag
> > news:%23CSvAoPdEHA.4048@TK2MSFTNGP12.phx.gbl...
> > > I may be wrong but don't you need the .NET Framework for C# to work?
Is
> > > there a version of the .NET Framework for WM 2003? If so I would
think
> > that
> > > would be a must have for users of WM 2003...
> > >
> > > Also and please forgive my ignorance here. Is C# meant to replace
Java?
> > Is
> > > it only a script language? Or is it an actual programming language?
> > >
> > > Rick Wessels
> > >
> > >
> > > "John Spaith [MS]" <jspaith@ONLINE.microsoft.com> wrote in message
> > > news:%23rJ5yrNdEHA.2352@TK2MSFTNGP09.phx.gbl...
> > > > Yes, Javascript should just work in PIE. I don't know why you're
> having
> > > > problems with it - at least if you're doing something not that
> > complicated
> > > > (PIE doesn't have full WinXP JScript, but it's close for full-blown
> > apps).
> > > > Are you trying to open JScript files directly (i.e. foobar.js)?
That
> I
> > > > don't think will work. But you can embedd JScript commands inside
> HTML.
> > > If
> > > > you are not having luck and you're using HTML/JScript combo, then
you
> > > should
> > > > post a small sample of something that's broken on this newsgroup and
> > > > hopefully someone can help (this is well outside my area of
> expertice).
> > > >
> > > > The way you're currently writing this, to actually save the scores
to
> a
> > > file
> > > > then you would either need to be able to access the filesystem
> directly
> > > > through JScript. There's no built-in support for this on PocketPC
due
> > to
> > > > dev resource limitations and also because there's tons of security
> > issues
> > > > with this - we don't want a random website to be able to open up the
> > > > device's filesys. On this front, you'd need to either write an
> ACtiveX
> > > > control to do filesystem operations -- which is very dangerous for a
> > user
> > > > visiting websites and is also very tricky - so I don't recommend
that.
> > > >
> > > > Alternatly you could go with your idea of having the mini HTTP
server
> do
> > > the
> > > > backend logic. Microsoft ships a web server for PocketPC that you
can
> > > > install and redistribute. It's in the PocketPC SDK. Note however
> that
> > > > there's a bug in PIE in 2003 where accessing
http://localhost/ is
> > busted.
> > > > There's a workaround for this that you should be able to get to on
> > google.
> > > > This web server supports ASP pages and ISAPI extensions. ISAPI's
can
> > > access
> > > > filesystem directly, ASP can't - you'd need that activeX object
again,
> > > > though the security wouldn't be as bad because you could mark the
> object
> > > so
> > > > it wasn't safe to be run from PocketIE. The short answer is that
ASP
> or
> > > > ISAPI and the HTTPD server in general are total over-kill here
unless
> > > you've
> > > > had a fair amount of experience with this stuff.
> > > >
> > > > So... is the only reason you're using JSCRIPT/HTML because you want
to
> > > make
> > > > the display easy? If you have a stateless quiz app (with no filesys
> > > access,
> > > > throw out results once app is done running) then that's a fine way
to
> > go.
> > > > Once you want to persist stuff, however, I'd recommend not messing
> with
> > > mini
> > > > web servers or ActiveX objects or any of that stuff and just write
> your
> > > app
> > > > in C#. Display is a bit trickier than HTML, but all the other
> problems
> > go
> > > > away.
> > > >
> > > > --
> > > > John Spaith
> > > > Software Design Engineer, Windows CE
> > > > Microsoft Corporation
> > > >
> > > > Have an opinion on the effectiveness of Microsoft Embedded
newsgroups?
> > > Let
> > > > us know!
> > > > https://www.windowsembeddedeval.com/community/newsgroups
> > > >
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > > You assume all risk for your use. © 2003 Microsoft Corporation. All
> > rights
> > > > reserved.
> > > >
> > > > "Dave Smithz" <SPAM FREE WORLD> wrote in message
> > > > news:4107acff$1@news1.homechoice.co.uk...
> > > > > Hi there,
> > > > >
> > > > > In summary: 1) Does Javascrpt work on Pocket IE?
> > > > > 2) If storing web pages locally, is there some way I can simulate
> CGI
> > > form
> > > > > processing on my Pocket PC.
> > > > >
> > > > >
> > > > > I want to write an interactive quiz for the pocket PC. Therefore
> some
> > > > > questions in web pages (that are stored locally on the Pocket PC)
> that
> > > are
> > > > > asked to the user with multiple choice answers and at the end the
> user
> > > is
> > > > > given a score and rating etc.
> > > > >
> > > > > However I made some assumtions that Javascript would just work in
> > Pocket
> > > > IE
> > > > > but my first attempt has shown that it is ignored. Is this the
case?
> > > > >
> > > > > Further to that, lets say I want to do more advance stuff with the
> > quiz
> > > > and
> > > > > process form input, as I am storing the web pages locally, does
that
> > > mean
> > > > I
> > > > > have to have some type of mini server running on the Pocket PC.
> > > > >
> > > > > Suddenly something that I thought was very simple, is maybe not as
> > > simple
> > > > as
> > > > > it first seemed.
> > > > >
> > > > > I really appreicate any help on this matter.
> > > > >
> > > > > Kind regards
> > > > >
> > > > > Dave
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>