vb.net dll compatibility

  • Thread starter Thread starter Bryan V.
  • Start date Start date
B

Bryan V.

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
 
* "Bryan V. said:
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>
 
I looked up info on Regasm, but I'm not understanding how I go about using
this tool... Please explain.

Bryan
 
Back
Top