Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5946455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:49:32+00:00 2026-05-22T16:49:32+00:00

If I have an application that is written in .net Compact Framework (and runs

  • 0

If I have an application that is written in .net Compact Framework (and runs on Windows CE) and is theoretically compatible with Windows Embedded Standard O/S, would it still be compatible if it makes use of OpenNETCF functionality?

Things like running .exe files with help of OpenNETCF for example. I am assuming that OpenNETCF uses P/Invoke under the hood, which might make the application incompatible with other OS than Windows CE.

I don’t use P/Invoke in my code, but I can’t asnwer for sure whether OpenNETCF does or does not.

.net compact framework 2.0 and windows embedded standard

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:49:33+00:00Added an answer on May 22, 2026 at 4:49 pm

    OpenNETCF does use P/Invoke extensively.

    It is effectively a wrapper for some core OS functionality in Windows CE and its derivatives, that is not otherwise implemented in the Compact Framework. In practice this means extensive P/Invoking of coredll.dll; the basic OS module for Windows CE.

    Windows Embedded Standard is Windows XP. For this reason I would not expect you to be able to use OpenNETCF.

    Depending on the version you’re using you may be able to get hold of the OpenNETCF code here (or buy the latest of course), and see what’s going on under the hood. Also, what you may find is that the calls you are making to the OpenNETCF are actually implemented anyway when compiling for Windows Embedded Standard.

    One way to approach this is to make another project to target this platform, containing exactly the same code files, but no reference to the OpenNETCF, then work through fixing the compile errors.

    You can add a Conditional compilation symbol to either the CE project or the Windows Embedded project then fix the errors like so (This example is not for OpenNETCF, but you get the idea):

        public static string ExecutingAssembly
        {
            get
            {
    #if WindowsCE
                return Assembly.GetExecutingAssembly().GetName().CodeBase;
    #else
                return Assembly.GetExecutingAssembly().Location;
    #endif
            }
        }
    

    Obviously you will then have to create a build for each platform as the outputted assemblies will now be different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that was written in vanilla ASP.NET that I would like
I have a web application that was originally written on .Net 1.1 Framework. I
I have written an ASP.NET MVC application that runs inside an IFrame. When one
I have an application that is written in VB.NET, using the System.Windows.Forms.Form as the
I have an application written in C# targeting .NET Compact Framework 3.5, running on
I have a ASP.NET application that we've written our own logging module for. My
I have an application written in VB.NET that interacts with Excel via interop. I
I am trying to write an application that uses java.net.Socket. I have also written
We have an application written in both C++ and .NET that installs for all
I have recently written an application(vb.net) that stores and allows searching for old council

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.