-
Oct 19th, 2011, 06:54 PM
#1
Thread Starter
New Member
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!
-
Oct 19th, 2011, 07:24 PM
#2
Re: using a C# dll in VB6 error: "Can't add reference to the specified file"
Welcome to Forums!
Did you write C# dll or is it something you downloaded?
If you did it yourself then read this article to find out what's missing.
-
Oct 19th, 2011, 07:39 PM
#3
Thread Starter
New Member
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
-
Oct 19th, 2011, 08:15 PM
#4
Thread Starter
New Member
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!
-
Oct 19th, 2011, 08:35 PM
#5
Re: using a C# dll in VB6 error: "Can't add reference to the specified file"
-
Oct 19th, 2011, 08:48 PM
#6
Thread Starter
New Member
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!
-
Oct 20th, 2011, 12:01 AM
#7
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.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|