Re: Assembly conversion to Pocket Pc format



Thank you very much Christopher for your time and response.

I am really sorry to say that I was not specific about my question.

My scenario is I have set of Compact framework DLL's (Not winodws assembly).
Till date I used to manually paste those into my device. While doing that it
used to copy and convert those assemblies into device format.

Now I want to automate that process and I don't want to manually copy them
rather I want to download from HTTP or HTTPS. So while downloading text file
downloads properly. But for assembly's,images,videos format needs to be
changed as it was happening when we manually copy to device.

In brief my question is how to copy and convert an assembly into device
without using activesynch ?

FYI those assemblies are CF assemblies not windows assemblies.

Hope I am much clear now.

Thanks..

Harsha.



"Christopher Fairbairn" wrote:

Hi Harsha,

"Harsha" <Harsha@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FF8A7D53-9072-4EF5-A21D-A374FD836174@xxxxxxxxxxxxxxxx
I want to convert windows assemblies to Pocket PC format. Is it possible ?
If so how to do that ? Do we have any tools to convert as have tools for
converting video and audio files to Pocket PC format ?

I don't think you'll find any automated tools for doing this kind of thing.
In certain respects there is no difference in format (i.e. the PE file
format used by *.dll and *.exe is essentially the same between both
platforms), but in others the differences between the .NET CF and full
framework are too great for an automated tool to perform without user
intervention.

If you take an assembly compiled for the .NET Compact Framework it will run
on the desktop without modification, assuming you only use the subset of
functionality supported on both platforms. You will get TypeLoad and
MethodMissing exceptions at runtime if your code references anything which
is not present on the current platform.

The opposite is not true. You can not take an assembly compiled for the
desktop and run it on the .NET CF without modification. If you have a
desktop assembly you realistically need to recompile it in order to get it
working on the .NET Compact Framework. When recompiling you will notice via
errors which features are not present within the base class libraries and
need code modifications to work around. You will also have a manual process
altering the code to cope with the different UI conventions and platform
limitations etc.

Daniel Moth has a good series of blog posts discussing this topic. For
example http://www.danielmoth.com/Blog/2004/09/retargetable-256.html

Hope this helps,
Christopher Fairbairn



.



Relevant Pages

  • Re: Assembly conversion to Pocket Pc format
    ... used to copy and convert those assemblies into device format. ... FYI those assemblies are CF assemblies not windows assemblies. ... If you take an assembly compiled for the .NET Compact Framework it will ... functionality supported on both platforms. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Do you use 3D CAD Libraries?
    ... If it's cost prohibitive to make all native assemblies in order to control positions of components, there is an alternative with univeral exports like STEP. ... Make an export of the non-moving parts and a separate export of the slide. ... I would always prefer the model to be in the SolidWorks format but any ...
    (comp.cad.solidworks)
  • Re: Assembly conversion to Pocket Pc format
    ... used to copy and convert those assemblies into device format. ... for .NET assemblies, i.e. it is simply passing them through unmodified. ... rather I want to download from HTTP or HTTPS. ... HTTP or HTTPS just fine without any modification or conversion required. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: VS 2008 is very slow when design aspx file
    ... If you have a number of dependent assemblies listed there and they are not the correct version then VS can really slow down. ... sometimes switching to code view of the aspx page you can do a Edit | Advanced | Format Document and it can sometimes throw an error indicating where a problem such as an imbalanced tag or a server control that is missing the runat attribute lies. ... You may want to copy the HTML first before you have it format the tags because an error can sometimes cause the formatting to work, ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Share classes / projects between frameworks
    ... A desktop assembly cannot execute on the device, ... This works because the .NET Compact Framework assemblies are retargetable. ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.general)