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

ComInterop: VB6 Com Interface object = VB6 Com object fails

Hi All:

As the subj says.... I am trying to do this:

Dim prms As BTIIFCORE.IFProperties
prms = New BTIBSODLL.Properties

BTIIFCORE is a VB6 DLL that contains a public not createable
class named IFProperties

BTIBSODLL is VB6 DLL that that contains a multiuse class
named Properties that implements IFProperties.

The assignment fails with this error:

COM object with CLSID {DF37E968-5E86-46A5-A449-5E9C2E180379}
is either not valid or not registered.

If I change the code to this:

Dim prms As Object
prms = New BTIBSODLL.Properties

then it works, however, I need access to the implemented
interface.

Any ideas to get this to work?

Doug.



Mar 22 '06 #1
1 1207
fwiw, I never solved the issue.... but I was able to work around it.

I wrapped the code below in a new VB6 dll and
simply called a function in the new dll.

"Douglas Marquardt" <no*****@dummy.com> wrote in message news:uK**************@TK2MSFTNGP11.phx.gbl...
Hi All:

As the subj says.... I am trying to do this:

Dim prms As BTIIFCORE.IFProperties
prms = New BTIBSODLL.Properties

BTIIFCORE is a VB6 DLL that contains a public not createable
class named IFProperties

BTIBSODLL is VB6 DLL that that contains a multiuse class
named Properties that implements IFProperties.

The assignment fails with this error:

COM object with CLSID {DF37E968-5E86-46A5-A449-5E9C2E180379}
is either not valid or not registered.

If I change the code to this:

Dim prms As Object
prms = New BTIBSODLL.Properties

then it works, however, I need access to the implemented
interface.

Any ideas to get this to work?

Doug.


Mar 22 '06 #2

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

Similar topics

0
by: Farek | last post by:
(If Im posting in the wrong place concerning COM+ and .NET plz redirect me.) Hello all, Im writing a COM+ in VB.NET that is suppose to be able to set/get an address(String value). I've made...
2
by: Ariel Gimenez | last post by:
Hi, maybe some of you can give me a hand with this, I have a dll written in VB 6 but i havent the source code of it. In Visual Basic 6 this dll instanciates with createobject and the method was...
0
by: Farek | last post by:
(If Im posting in the wrong place concerning COM+ and .NET plz redirect me.) Hello all, Im writing a COM+ in VB.NET that is suppose to be able to set/get an address(String value). I've made...
9
by: walt.stoneburner | last post by:
Why does aliasing an interface fail at runtime? SAMPLE WORKING CODE ... IHTMLDocument2 doc = (IHTMLDocument2) browser.Document; ... BROKEN CODE public interface IFooBar : IHTMLDocument2 { }...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.