I am having problems referencing a C++ DLL from my .Net App. Everything works fine onthe machine that I build the app but if I try to run the app on a different machine I get an error:

Could not load file or assembly 'AClassLib'.

I've simplified the app and DLL down to 2 functions. What am I missing?


vb Code:
  1. Imports AClassLib
  2. Public Class Form1
  3.  
  4.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  5.         'Dim ACL As AClassLib.Class1 = New AClassLib.Class1
  6.         Dim ACL As New AClassLib.Class1
  7.         Dim a As Double
  8.         Dim b As Double
  9.         Dim c As Double
  10.  
  11.         a = TextBox1.Text
  12.         b = TextBox2.Text
  13.  
  14.         Try
  15.             c = ACL.AddEm(a, b)
  16.         Catch ex As Exception
  17.             MessageBox.Show("Button1_Click: " & ex.Message.ToString)
  18.         End Try
  19.  
  20.         lblAnswer.Text = c
  21.     End Sub
  22. End Class

Code:
#include "stdafx.h"

#include "AClassLib.h"

namespace AClassLib {

	double Class1::AddEm(double A, double B)
{
	return A + B;
}
}