繁体   English   中英

在DLL'uxtheme.dll'中找不到名为'IsTjemePartDefined'的入口点

[英]Unable to find an entry point named 'IsTjemePartDefined' in DLL 'uxtheme.dll'

我收到此时髦错误:

这是一个简单的C#程序,其来源是:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.Threading;
using System.IO;

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

        List<string> sentences = new List<string>();
        public int Count = 0;

        private void button1_Click(object sender, EventArgs e)
        {
            button1.Text = "Generating...";
            button1.Enabled = false;

            Application.DoEvents();

            string data = richTextBox1.Text;

            Random rand = new Random(this.Timestamp());

            for (; ; )
            {
                string spun = this.spintax(rand, data);

                if (sentences.Contains(spun) != true)
                {
                    sentences.Add(spun);
                }
                else
                {
                    this.Count++;
                }

                if (this.Count == 1000)
                {
                    break;
                }

            }

            label2.Text = this.sentences.Count().ToString();

            foreach (string sentence in sentences)
            {
                richTextBox2.Text += sentence + "\n";
            }

            MessageBox.Show("Completed!", "Information!", MessageBoxButtons.OK, MessageBoxIcon.Information);

            button1.Enabled = true;
            button1.Text = "Start Decoding";

            this.sentences.Clear();
            this.Count = 0;
        }

        public int Timestamp()
        {
            long ticks = DateTime.UtcNow.Ticks - DateTime.Parse("01/01/1970 00:00:00").Ticks;
            ticks /= 10000000;
            return Convert.ToInt32(ticks);
        }

        public string spintax(Random rnd, string str)
        {
            string pattern = "{[^{}]*}";
            Match m = Regex.Match(str, pattern);
            while (m.Success)
            {
                string seg = str.Substring(m.Index + 1, m.Length - 2);
                string[] choices = seg.Split('|');
                str = str.Substring(0, m.Index) + choices[rnd.Next(choices.Length)] + str.Substring(m.Index + m.Length);
                m = Regex.Match(str, pattern);
            }

            return str;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            saveFileDialog1.Filter = "Text File|.txt";
            saveFileDialog1.InitialDirectory = "C:\\";
            saveFileDialog1.ShowDialog();

            string file = saveFileDialog1.FileName;

            if (file.Trim() != "")
            {
                StreamWriter writer = new StreamWriter(file);

                string[] lines = richTextBox2.Text.Split('\n');

                foreach(string line in lines)
                {
                    writer.WriteLine(line);
                }

                writer.Close();
                MessageBox.Show("File saved!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
    }
}

http://pastebin.com/hUjmAvhe

我不知道我是怎么得到这个错误的。 之前它运行良好,现在我打开它,并收到此错误。

嘿,机器磁盘驱动器上约8万亿比特中的一个从0变为1。可能不是唯一的一个。 这样做不会产生CRC错误,这是非常不健康的。 再说一次,也许它做到了,它会自动恢复,以拯救仍然可以读取的任何数据。 应该在Windows事件日志中有所作为。

在建议的对策列表中,替换它的位置应该很高。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM