using a C# dll in VB6 error: "Can't add reference to the specified file"-VBForums
Results 1 to 7 of 7

Thread: using a C# dll in VB6 error: "Can't add reference to the specified file"

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    7

    Question using a C# dll in VB6 error: "Can't add reference to the specified file"

    Hello,http://www.vbforums.com/images/smilies/wave.gif

    I'm new here, this is my first post.
    I am having a problem in using a C# dll in VB6. I cannot reference it.
    VB6 says "Can't add reference to the specified file" whenever i reference
    the dll. Please help. I can't figure out what the problem is.

    Thanks!

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    7

    Smile Re: using a C# dll in VB6 error: "Can't add reference to the specified file"

    Hey,

    Thanks for the link. yeah my teammate wrote it in C# then I have to use it in vb6. I will let him checkout the link and let him check if he has any error. all the while i thought the problem was on VB6 side.

    thanks again. I will give feedback once it's already resolved. =D

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    7

    Re: using a C# dll in VB6 error: "Can't add reference to the specified file"

    Hello again rhino,

    My teammate already compiled a tlb so i can use it in vb6. the problem is i don't know how to register a tlb file. is it the same with regsvr32?

    thanks in advance!

  5. #5

  6. #6

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    7

    Re: using a C# dll in VB6 error: "Can't add reference to the specified file"

    I've already registered my tlb but there is still an error that says,
    "ActiveX component cant create object".

    i have already declared it as

    Global fileCheckSum As New checksumcalc.MyCheckSumCalc

    and then

    Set checkSum = fileCheckSum.MyCheckSumCalc
    MsgBox (fileCheckSum("C:\Fact"))

    Am I missing something?
    I cant seem to make it work. please help.

    Thanks!

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,903

    Re: using a C# dll in VB6 error: "Can't add reference to the specified file"

    Not sure if this will give you anymore useful information that RhinoBull hasn't already mentioned.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.