Click here to Skip to main content
15,899,313 members
Home / Discussions / COM
   

COM

 
GeneralRe: How do i make COM inprocess server program using C++? Pin
Sakthiu20-Sep-06 23:23
Sakthiu20-Sep-06 23:23 
QuestionIssues Implementing ATL COM Callback Functionality Pin
Setesh8220-Sep-06 13:14
Setesh8220-Sep-06 13:14 
QuestionRe: Issues Implementing ATL COM Callback Functionality Pin
prasad_som20-Sep-06 23:22
prasad_som20-Sep-06 23:22 
AnswerRe: Issues Implementing ATL COM Callback Functionality Pin
Setesh8221-Sep-06 3:14
Setesh8221-Sep-06 3:14 
AnswerRe: Issues Implementing ATL COM Callback Functionality Pin
Mike Dimmick21-Sep-06 3:00
Mike Dimmick21-Sep-06 3:00 
GeneralRe: Issues Implementing ATL COM Callback Functionality Pin
Setesh8221-Sep-06 5:42
Setesh8221-Sep-06 5:42 
QuestionCOM Interop apartment issue - QueryInterface failing?!? Pin
Daniel Deptford20-Sep-06 4:05
Daniel Deptford20-Sep-06 4:05 
Questionerror 80040154 at instantiation of COM object Pin
mkrelli19-Sep-06 22:55
mkrelli19-Sep-06 22:55 
Hello everybody.

I'm actually working on a service for phone call notification... However, to achieve that I downloaded a library called CapiThread (this is a sort of wrapper for the capi2032.dll). This is an "old" Win32 dll that exports 5 methods. (InitCapiThread, CloseCapiThread, RegisterNotifyMessage, SetRequest, GetIndication).

To use that dll within a C# Windows-Service project i've written a COM wrapper (COM Object ISDNCapi). The ISDNCapi object retrieves the notifications thrown by the CapiThread dll if an indication is pending and fires an event (OnCapiIndication). There are some other classes to hold the data of the indications and requests.
i know that i can youse P/invoke. but i've choosen to build a com wrapper, because i want to have a more general solution. so i can use it with other languages... and i found the event handlers better than hooking on notify messages (in C#) the CapiThread.dll sends.

Okay...
Now i've build a metadata-dll with TLBIMP that i use in my program. (As descripted in "COM Interoperability in .NET Framework: Part I"). The code compiles without any problems, but during the instantiation of my class ISDNCapi the following error raises:

Retrieving the COM class factory for component with CLSID {3A5119AE-E5CC-406F-8F62-FFC340C424CE} failed due to the following error: 80040154.

The component is definetly registered and can access it's dependecies, because instantiation it in VB6 causes no error and the regsvr32 succeeds also.

Somebody suggested me to check if the class factory registers correctly... but i've never done this seperately (in vc 6) so i don't know howto register it nor what to look for...
i've created the project with the option "component registrar". do i have to call the RegisterAll function of the Registrar class?
can anybody please check it in my code?

I've uploaded the sources of my projects to my server:
CapiWrapperSln
ISDNMonServer

And here are the complete exception details:
System.Runtime.InteropServices.COMException was unhandled
Message="Retrieving the COM class factory for component with CLSID {3A5119AE-E5CC-406F-8F62-FFC340C424CE} failed due to the following error: 80040154."
Source="ISDNMonServer"
ErrorCode=-2147221164
StackTrace:
at ISDNMonServer.ISDNMonServer..ctor() in E:\Entwicklungsumgebung\Projekte\Office\ISDNMon\ISDNMonServer\ISDNMonServer.cs:line 20
at ISDNMonServer.Program.Main() in E:\Entwicklungsumgebung\Projekte\Office\ISDNMon\ISDNMonServer\Program.cs:line 22
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()



thanks.
Martin.
Questiongive suggestion to start learning COM Pin
premkamalg19-Sep-06 20:10
premkamalg19-Sep-06 20:10 
AnswerRe: give suggestion to start learning COM Pin
ShilpiP28-Sep-06 0:11
ShilpiP28-Sep-06 0:11 
AnswerRe: give suggestion to start learning COM Pin
Hamid_RT28-Sep-06 9:10
Hamid_RT28-Sep-06 9:10 
QuestionError in Deployment Pin
Jeeva Mary Varghese19-Sep-06 18:21
Jeeva Mary Varghese19-Sep-06 18:21 
AnswerRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 18:54
Stephen Hewitt19-Sep-06 18:54 
QuestionRe: Error in Deployment Pin
Jeeva Mary Varghese19-Sep-06 19:13
Jeeva Mary Varghese19-Sep-06 19:13 
AnswerRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 19:37
Stephen Hewitt19-Sep-06 19:37 
GeneralRe: Error in Deployment Pin
Jeeva Mary Varghese19-Sep-06 19:44
Jeeva Mary Varghese19-Sep-06 19:44 
GeneralRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 19:49
Stephen Hewitt19-Sep-06 19:49 
GeneralRe: Error in Deployment Pin
Jeeva Mary Varghese19-Sep-06 19:59
Jeeva Mary Varghese19-Sep-06 19:59 
GeneralRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 20:28
Stephen Hewitt19-Sep-06 20:28 
QuestionLeak for not calling VariantClear on a Variant holding a IXMLDOMSchemaCollection2Ptr Pin
rajandpayal17-Sep-06 4:29
rajandpayal17-Sep-06 4:29 
AnswerRe: Leak for not calling VariantClear on a Variant holding a IXMLDOMSchemaCollection2Ptr Pin
Aamir Butt19-Sep-06 20:57
Aamir Butt19-Sep-06 20:57 
QuestionIE Extension: How to add a button to the status bar? Pin
rryyjw15-Sep-06 6:08
rryyjw15-Sep-06 6:08 
GeneralRe: IE Extension: How to add a button to the status bar? Pin
Guffa15-Sep-06 15:57
Guffa15-Sep-06 15:57 
QuestionSystem.Runtime.InteropServices.COMException (0x80040154): ERROR Pin
Jeeva Mary Varghese14-Sep-06 19:23
Jeeva Mary Varghese14-Sep-06 19:23 
AnswerRe: System.Runtime.InteropServices.COMException (0x80040154): ERROR Pin
prasad_som14-Sep-06 19:52
prasad_som14-Sep-06 19:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.