Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"ActiveX Component unable to create object" w/ my Out of Process exe

Status
Not open for further replies.

NipsMG

Programmer
Dec 27, 2000
215
US
I've got a problem.

I created an Activex EXE (i want an out of process COM component, where multiple apps can share an instance).

Instancing: MultiUse
Persistable: 1 - Persistable

I created the EXE, registered it using MyOPC.exe /regserver, then added it to the References in my test project, and created a reference to it by doing the following:

Public WithEvents moNotify as MyOPC.NotifyMe

Form_Load:

set moNotify = new MyOpc.NotifyMe
OR
set moNotify = CreateObject("MyOpc.NotifyMe")

However, I keep getting "ActiveX Object Cannot Create Component" as an error after it hangs for a while.

Does anyone have any idea why this would be happening?

What am I doing wrong?

:-(

NipsMG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top