473,396 Members | 1,933 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,396 software developers and data experts.

Unable to upgrade VB6 COM Dll to VB.Net

I read lots of stuff on MSDN relating to upgrading a COM
Dll build using VB6 to VB.Net. Its seems to be a very easy
task. As per few articles when we open vb6 application
in .Net framework upgrade wizard is invoked. The wizard
gives us option to create DLL (option to create EXE is
grayed). Then articles says that if we want methods of
public classes to be converted to interface methods check
the box for Generate Interfaces For Classes. Now at my end
this checkbox does not appear on Page 2 of the wizard. I
have got version 7.1. The result is that my application is
upgraded successfully but the upgrade HTML displays
GenerateInterfacesForClasses = FALSE. Moreover when i try
to create a TLB using a utility i only get methods of
IDispatch Interface. TLB does not have my interface
methods , although it do create entry for my interface.
Please through some light on this problem.
Thanks in advance,
Shailja
Nov 20 '05 #1
2 1353
Hi,

Set the comvisible attribute for the class.
http://msdn.microsoft.com/library/de...classtopic.asp

Use regasm.exe to register the class
http://msdn.microsoft.com/library/de...lregasmexe.asp

Ken
--------------
"Shailja" <an*******@discussions.microsoft.com> wrote in message
news:13*****************************@phx.gbl...
I read lots of stuff on MSDN relating to upgrading a COM
Dll build using VB6 to VB.Net. Its seems to be a very easy
task. As per few articles when we open vb6 application
in .Net framework upgrade wizard is invoked. The wizard
gives us option to create DLL (option to create EXE is
grayed). Then articles says that if we want methods of
public classes to be converted to interface methods check
the box for Generate Interfaces For Classes. Now at my end
this checkbox does not appear on Page 2 of the wizard. I
have got version 7.1. The result is that my application is
upgraded successfully but the upgrade HTML displays
GenerateInterfacesForClasses = FALSE. Moreover when i try
to create a TLB using a utility i only get methods of
IDispatch Interface. TLB does not have my interface
methods , although it do create entry for my interface.
Please through some light on this problem.
Thanks in advance,
Shailja

Nov 20 '05 #2

Thanks Ken, your tip did helped me to solve the problem.

Regards,
Shailja
-----Original Message-----
Hi,

Set the comvisible attribute for the class.
http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/cpref/html/frlrfsystemruntimeinteropservicescomvisibleat
tributeclasstopic.asp
Use regasm.exe to register the class
http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/cptools/html/cpgrfassemblyregistrationtoolregasmexe.asp
Ken
--------------
"Shailja" <an*******@discussions.microsoft.com> wrote in messagenews:13*****************************@phx.gbl...
I read lots of stuff on MSDN relating to upgrading a COM
Dll build using VB6 to VB.Net. Its seems to be a very easy task. As per few articles when we open vb6 application
in .Net framework upgrade wizard is invoked. The wizard
gives us option to create DLL (option to create EXE is
grayed). Then articles says that if we want methods of
public classes to be converted to interface methods check the box for Generate Interfaces For Classes. Now at my end this checkbox does not appear on Page 2 of the wizard. I
have got version 7.1. The result is that my application is upgraded successfully but the upgrade HTML displays
GenerateInterfacesForClasses = FALSE. Moreover when i try to create a TLB using a utility i only get methods of
IDispatch Interface. TLB does not have my interface
methods , although it do create entry for my interface.
Please through some light on this problem.
Thanks in advance,
Shailja

.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jame Johnson | last post by:
I'm running FreeBSD 4.10 stable. I upgraded to php 5.03. Now when I run php I get the following types of messages: PHP Warning: PHP Startup: Unable to load dynamic library...
0
by: Edward Diener | last post by:
I am unable to install the .NET doc update NDP1.1-KB827821-X86-Enu.exe. My last MSDN was April of 2003 and when I try to install this download in order to get more current .NET information and...
3
by: Ryan Cowan | last post by:
I would like to upgrade from XP Home to Professional. However, I get the following error message: "Setup cannot continue because the version of Windows on your computer is newer than the version...
0
by: Jim M | last post by:
For about a year and a half now I have been working in Access 2002 at home and converting to Access 2000 for work (I need both versions). I made a few changes to forms and queries then converted to...
2
by: TM | last post by:
When I run an ASP.Net application I am getting the following error: "Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged."...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
2
by: Roy | last post by:
Hi all, I installed IIS on my Win2K machine after installing Visual Studio 2003 and now have problem with debugging asp.net files. I need to know if I need to uninstall IIS and install a newer...
1
by: Troy Jerkins | last post by:
WSS V2, SP2 running on Win Svr 2003, SP1. I've just upgraded from .NET 1.1 to 2.0. I have multiple virtual server sites on this server using host headers with the same IP. I changed all my sites...
7
by: Jed | last post by:
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.