Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a vb dll in C#

Status
Not open for further replies.

HLPCH

IS-IT--Management
Jul 12, 2004
47
US
I have created the following Activexdll in vb6:

Class: our_csharp

Public Function Show()

MsgBox ("Message box created by using Visual Basic")

End Function

I have compiled the above project and set the porject compatibility to Binary.

Now when i invoke this from asp.net(set reference to the above dll)
private void Page_Load(object sender, System.EventArgs e)
{
Our_csharp b = new Our_csharpClass();
b.Show();

}

The program hangs on the line b.Show()..

Please help!!

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top