Hi,
I am trying to run BricsCAD with a C# windows form, but I am getting a security exception error.
Anyone familiar with this problem?
This is my code sofar:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using BricscadApp;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Microsoft.VisualBasic;
namespace ComExample
{
public partial class Form1 : Form
{
private AcadApplication m_BricsCad = null;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
try
{
m_BricsCad = new AcadApplication();
Interaction.AppActivate(m_BricsCad.Application.Caption);
}
catch (COMException ce)
{
MessageBox.Show(ce.Message, "No BricsCad was found. Start V9 before running this program.");
}
}
}
}
extra information: I have installed 3 versions of BricsCAD (V9, V10 and V11) but I use the BricscadApp & BricscadDb from V11
Greetzzz,
Gerben