Okay I'm trying to set up an open file dialog to grab a dll of my choice, then inject it into the application. I know how to use my own custom DLLs, but I also want the ability to make DLLs then use them without modifying the source after run time.
My idea was to use the DLLImport but that didn't work... It turns out that this will be a little more complicated than I thought. I'm not very far into my C# studies so this is very new to me. DLLs in particular are a completely new universe. I just began trying to bring them into my programming. Below is my current source code, the only thing I have done so far is open the dialog.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace DLLOpen
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
void button1_Click(object sender, EventArgs e)
{
oFD.ShowDialog();
}
}
}
So can anyone help me with this?