By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,589 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

vb.net dll compatibility

P: n/a
Hello,
I earlier asked about custom DLL properties in vb.net and got very good
answers. Now I have a new problem. I made a DLL in vb.net using the File
System Watcher. I now want to use that DLL in VB6. When I add a reference,
vb6 says it can't load the dll. Why? I thought DLLs work with just about
anything since they're basically their own program.

I have a vb6 dll and it works with my .net ... ?

Thanks!
Bryan
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
I should make a note that my VB.NET and VB6 are on separate computers.

Bryan

"Bryan V." <ch***********@hotmail.com> wrote in message
news:e#*************@TK2MSFTNGP12.phx.gbl...
Hello,
I earlier asked about custom DLL properties in vb.net and got very good
answers. Now I have a new problem. I made a DLL in vb.net using the File
System Watcher. I now want to use that DLL in VB6. When I add a reference,
vb6 says it can't load the dll. Why? I thought DLLs work with just about
anything since they're basically their own program.

I have a vb6 dll and it works with my .net ... ?

Thanks!
Bryan

Nov 20 '05 #2

P: n/a
Bryan,

Are you registering your component in the VB 6 machine using regasm?

This document has a lot of info on COM Interop:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconExposingNETFrameworkComponentsToCOM.asp

Telmo Sampaio
"Bryan V." <ch***********@hotmail.com> wrote in message
news:Ol**************@TK2MSFTNGP09.phx.gbl...
I should make a note that my VB.NET and VB6 are on separate computers.

Bryan

"Bryan V." <ch***********@hotmail.com> wrote in message
news:e#*************@TK2MSFTNGP12.phx.gbl...
Hello,
I earlier asked about custom DLL properties in vb.net and got very good
answers. Now I have a new problem. I made a DLL in vb.net using the File
System Watcher. I now want to use that DLL in VB6. When I add a reference, vb6 says it can't load the dll. Why? I thought DLLs work with just about
anything since they're basically their own program.

I have a vb6 dll and it works with my .net ... ?

Thanks!
Bryan


Nov 20 '05 #3

P: n/a
* "Bryan V." <ch***********@hotmail.com> scripsit:
I earlier asked about custom DLL properties in vb.net and got very good
answers. Now I have a new problem. I made a DLL in vb.net using the File
System Watcher. I now want to use that DLL in VB6. When I add a reference,
vb6 says it can't load the dll. Why? I thought DLLs work with just about
anything since they're basically their own program.


You will have to register the DLL for COM interop. Basic sample:

<URL:http://dotnet.mvps.org/dotnet/samples/codingtechnique/downloads/MyComLib.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

P: n/a
I looked up info on Regasm, but I'm not understanding how I go about using
this tool... Please explain.

Bryan
"Telmo Sampaio" <ts******@gmail.com> wrote in message
news:#4**************@tk2msftngp13.phx.gbl...
Bryan,

Are you registering your component in the VB 6 machine using regasm?

This document has a lot of info on COM Interop:
http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpconExposingNETFrameworkComponentsToCOM.asp

Telmo Sampaio
"Bryan V." <ch***********@hotmail.com> wrote in message
news:Ol**************@TK2MSFTNGP09.phx.gbl...
I should make a note that my VB.NET and VB6 are on separate computers.

Bryan

"Bryan V." <ch***********@hotmail.com> wrote in message
news:e#*************@TK2MSFTNGP12.phx.gbl...
Hello,
I earlier asked about custom DLL properties in vb.net and got very good answers. Now I have a new problem. I made a DLL in vb.net using the File System Watcher. I now want to use that DLL in VB6. When I add a reference, vb6 says it can't load the dll. Why? I thought DLLs work with just about anything since they're basically their own program.

I have a vb6 dll and it works with my .net ... ?

Thanks!
Bryan



Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.