Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. COM Interoperability In C#??????

COM Interoperability In C#??????

Scheduled Pinned Locked Moved C#
comhelpcsharpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leesen
    wrote on last edited by
    #1

    Hi, all I come accross a problem again. Firstly,I make a ActiveX Dll(myDll.dll) in Visual Basic 6.0. And in myDll.dll there is only one function as follow: Public Function show ( ) MsgBox ( "Hello world!" ) End Function Then, I type this command in dos: TlbImp mydll.dll /out: my.Dll According the reference ,then I can invoke the method "show" in my C# console apllication. My C# application(try.cs) as follows: using my ; using System ; namespace Hello { public class Activex { public static void Main ( ) { Class1 s = new Class1 ( ) ; s.show ( ) ; } } } Finally,I type such command : csc /r:my.dll try.cs But errors ocurres, and details are showed as follows: Try.cs(10,25): error CS0246: The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) Try.cs(11,25): error CS0246: The type or namespace name 's' could not be found (are you missing a using directive or an assembly reference?) who can tell me why ? regards.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups