明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2681|回复: 2

[基础] vs2010+CAD2012 引用acdbmgd.dll和acmgd.dll

[复制链接]
发表于 2015-1-23 15:52 | 显示全部楼层 |阅读模式
vs2010+CAD2012 环境下 引用acdbmgd.dll和acmgd.dll

执行 最简单的代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.DatabaseServices;

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

        public static void GetLayerPro()
        {
            Autodesk.AutoCAD.DatabaseServices.DBDictionary dt = new Autodesk.AutoCAD.DatabaseServices.DBDictionary();
        }
    }
}




报错  未能加载文件或程序集“acdbmgd.dll”或它的某一个依赖项。试图加载格式不正确的程序。







该贴已经同步到 苍穹的微博
发表于 2015-1-25 09:44 | 显示全部楼层
要继承一个有入口函数的类哦,IExtent...
 楼主| 发表于 2015-1-26 08:41 | 显示全部楼层
可否给个实例demo
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-17 10:30 , Processed in 0.141579 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表