Converting GetObjectContext() from VB6 to VB2008
-
quinta-feira, 28 de agosto de 2008 14:49Hi,
I have a vb6 COM object that I am converting to VB.Net 2008
What is the equivalent of GetObjectContext() in VB 2008?
Thanks
Todas as Respostas
-
segunda-feira, 1 de setembro de 2008 10:12ModeradorHi ,
VB.NET can't generate the COM component. How do you upgrade the VB6 COM object in VB.NET? Actually we can use COM interop to use the COM object in VB.NET application. You don't need to upgrade this COM object.
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
segunda-feira, 1 de setembro de 2008 20:18Do you mean VB.Net can't call the COM object?
Well, the COM object is originally written in VB6, and needs to be upgraded to VB.Net.
Upgrading to .Net is a requirement
The converter wizard in VS2008 was used to upgrade the COM object.
However, the section that contains GetObjectContext now reads:
'UPGRADE_ISSUE: COMSVCSLib.AppServer .GetObjectContext was not upgraded.
-
terça-feira, 2 de setembro de 2008 04:35ModeradorI don't say that VB.Net can't call the COM object. I just say that VB.NET doesn't generate the COM component. First tell us what is your VB6 COM object. Then read Calling COM Components from .NET Clients. In this document, you'll learn the details of calling COM servers from .NET clients.
If you need to creaet the .NET object which is used in COM client application, read http://support.microsoft.com/kb/817248. This article describes how use Microsoft Visual Basic .NET or Microsoft Visual Basic 2005 to build a managed assembly that can be called from Microsoft Visual Basic 6.0.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marcado como Resposta Riquel_DongModerator quinta-feira, 4 de setembro de 2008 02:49
- Não Marcado como Resposta MSNetDeveloper quinta-feira, 4 de setembro de 2008 12:50
- Não Marcado como Resposta MSNetDeveloper quinta-feira, 4 de setembro de 2008 12:50
- Não Marcado como Resposta MSNetDeveloper quinta-feira, 4 de setembro de 2008 12:51
-
quinta-feira, 4 de setembro de 2008 12:52
Anyone else have any ideas to my question?
-
terça-feira, 16 de setembro de 2008 15:33Since no-one else has replied... here is a very non-specific answer
It sounds like you want to replace a VB6 COM+ object with something in .NET. I've no experience with COM+ at all, but it is supposedly possible to create .NET components that can work with COM+
For instance there's this
http://www.csharphelp.com/archives/archive116.html
-
segunda-feira, 12 de março de 2012 13:26Did you ever get a solution to this problem? I've just been given a job converting a website from VB6 to VB.Net 2008 to stop some memory leakage and I have exactly the same problem.

