VS2010調用halcon的時候出現試圖加載格式不正確的程序(this.hWindowControl1 = new HalconDotNet.HWindowControl();)


【重要錯誤修改】

 

        /// <summary>

        /// 設計器支持所需的方法 - 不要

        /// 使用代碼編輯器修改此方法的內容。

        /// </summary>

        private void InitializeComponent()

        {

            this.button1 = new System.Windows.Forms.Button();

            this.hWindowControl1 = new HalconDotNet.HWindowControl();

            this.SuspendLayout();

            //

            // button1

            //

            this.button1.Location = new System.Drawing.Point(689, 170);

            this.button1.Name = "button1";

            this.button1.Size = new System.Drawing.Size(75, 23);

            this.button1.TabIndex = 1;

            this.button1.Text = "button1";

            this.button1.UseVisualStyleBackColor = true;

            this.button1.Click += new System.EventHandler(this.button1_Click);

            //

            // hWindowControl1

            //

            this.hWindowControl1.BackColor = System.Drawing.Color.Black;

            this.hWindowControl1.BorderColor = System.Drawing.Color.Black;

            this.hWindowControl1.ImagePart = new System.Drawing.Rectangle(0, 0, 640, 480);

            this.hWindowControl1.Location = new System.Drawing.Point(146, 59);

            this.hWindowControl1.Name = "hWindowControl1";

            this.hWindowControl1.Size = new System.Drawing.Size(320, 240);

            this.hWindowControl1.TabIndex = 2;

            this.hWindowControl1.WindowSize = new System.Drawing.Size(320, 240);

            //

 

this.hWindowControl1 = new HalconDotNet.HWindowControl();

試圖加載格式不正確的程序

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM