找不到指定的模块

找不到指定的模块

本文介绍了无法加载DLL'coredll.dll':找不到指定的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个用于测试OpenNETCF库加载的小型应用程序,偶然发现了这个奇怪的消息

I am writing a small application to test OpenNETCF library loading and have stumbled upon this curious message

Unable to load DLL 'coredll.dll' : the specified module could not be found

我正在Windows Embedded 7 Compact瘦客户端上使用Compact Framework 3.5.

I am using Compact Framework 3.5 on a Windows Embedded 7 Compact thin client.

代码是

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using OpenNETCF.Threading;

namespace Windows7EmbeddedTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

            MessageBox.Show("Starting the test");

            bool notRunning;
            NamedMutex mutex = new NamedMutex(false, "myappname", out notRunning);


            MessageBox.Show("test went well!");

        }
    }
}

任何想法如何解决?我在Windows Embedded Compact 7瘦客户端中搜索了coredll.dll,但没有发现任何问题.我的理解是它是Windows CE设备不可或缺的一部分.那么,为什么OpenNETCF在Windows Embedded Compact 7计算机上找不到它?我需要手动下载/安装此dll吗?注册吗?如果Windows Embedded Compact 7附带了它,那么寻找它的途径将是什么?

Any ideas how this could be fixed? I searched my Windows Embedded Compact 7 thin client for coredll.dll and nothing came up. My understanding is that it is an integral part of Windows CE devices. Then why can't OpenNETCF find it on Windows Embedded Compact 7 machine? Do I need to download/install this dll manually? Register it?If Windows Embedded Compact 7 ships with it, what would be the path to look for it?

推荐答案

您是否完全肯定瘦客户机设备正在运行Windows Embedded Compact(Windows CE)而不是Windows Embedded Standard(WES)?

Are you absolutely positive that your thin client device is running Windows Embedded Compact (Windows CE) and not Windows Embedded Standard (WES)?

我问的原因是因为coredll.dll是Windows CE OS的基本组成部分.这类似于台式机的kernel32.dll和user32.dll(以及其他几个)全部包装为一个.不可能有不包含coredll.dll的Windows CE操作系统.

The reason I ask is because coredll.dll is a fundamental piece of the Windows CE OS. It's the analog to the desktop's kernel32.dll and user32.dll (plus several others) all wrapped up into one. It's impossible to have a Windows CE OS that doesn't contain coredll.dll.

通常它是一个隐藏文件,因此除非您显示隐藏文件"或使用诸如Remote File Viewer之类的文件,否则它不会在资源管理器中显示,但是.NET加载程序找不到它的事实使我怀疑它不是在那里,这反过来让我相信您正在运行WES而不是CE.

Normally it's a hidden file, so it doesn't show in Explorer unless you "show hidden files" or use something like Remote File Viewer, but the fact that the .NET loader can't find it makes me suspect it's not there, which in turn makes me believe you're running WES and not CE.

这篇关于无法加载DLL'coredll.dll':找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 07:00