1 Replies - 3078 Views - Last Post: 27 February 2013 - 01:33 PM Rate Topic: -----

#1 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,507
  • Joined: 16-March 11

Asp.net and reference to activex vb6 dll

Posted 27 February 2013 - 12:27 PM

Hey folks. I've written a database management system and all is going well but my father is working with me by writing functions and such to a vb6 activex dll that I have referenced. After so I've accessed the .dll class called primary and instanced it properly. Now when I run the application it gives me an error telling me the interface which is the class in the dll causes an exception. Ive tried manually adding a runtime wrapper for the activex com dll but doesn't work. Now when I publish the application where does this dll need to be? I've tried the bin and I've fried manual function declarations directly to the path of the dll but to no avail. I'm all out of ideas and I apologize for the messiness that is this message. I've got a lot to say and all on a phone lol.

Is This A Good Question/Topic? 0
  • +

Replies To: Asp.net and reference to activex vb6 dll

#2 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,507
  • Joined: 16-March 11

Re: Asp.net and reference to activex vb6 dll

Posted 27 February 2013 - 01:33 PM

Solved it! Turns out since it's a com object.

This.

Dim KDLL As New KDLLT.Primary



becomes

Dim KDLL As Object = CreateObject("KDLLT.Primary")



This.

This post has been edited by trevster344: 27 February 2013 - 01:34 PM

Was This Post Helpful? 2
  • +
  • -

Page 1 of 1