473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

vb.net dll compatibility

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
4 1273
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
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
* "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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jez Naisbitt | last post by:
Hi Guys, After a break of 2 years I'm now re-visiting the world of java. I recall on my last foray that I had to stick to java 1.1 so I could deploy applets from a server and obtain maximum...
0
by: flat_ross | last post by:
If there was one thing nice about "Binary Compatibility" in VB6, it would tell you at compile time that you changed your public interface. I am looking for the same functionality in .NET. I know...
6
by: someone | last post by:
Suppose that I have a class in an assembly that is delivered to the user, what can I do to change the class so that it doesn't break the binary compatibility? That is, user application can run...
13
by: Derek | last post by:
As I understand it there is a good amount of link compatibility among C compilers. For example, I can compile main.c with GCC and func.c with Sun One and link the objects using either linker (GNU...
2
by: Dominic | last post by:
Hi everybody, I'm planning to use serialization to persist an object (and possibly its child objects) in my application. However, I'm concerned about the backward compatibility issue. I'm...
1
by: Vycka | last post by:
Hello, There is a enterprise web application that is based on asp.net technologies and works on Microsoft IIS. The total number of users is 850. When the load of system gets very high, the...
14
by: frostalicious | last post by:
Used VB.NET (on my client PC) to convert VB6 executable to .NET executable. Placed the .exe file on a network drive on my server. From client, ran .NET Wizards "Trust an Assembly" to make the...
2
by: Carlo | last post by:
I recently started in a new position, and I inherited an application written in VB6 that uses a bunch of DLLs and OCX controls. Version Compatibility is set to Binary at the project level, but since...
1
by: Simon Woods | last post by:
Hi I have a dll ('dll-X') which runs on top of (dependent upon) several other dlls. My build environment has a folder structure binaries compat-libs
17
by: osama178 | last post by:
Hi, What does it mean for an object to be binary compatible? And why aren't STL objects binary compatible? Any insights, links, resources for further reading are greatly appreciated. Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.