Click here to Skip to main content
15,893,486 members
Home / Discussions / COM
   

COM

 
GeneralHRESULT and Borland C++ Builder Pin
Andrew Tomsen3-Jan-05 1:02
sussAndrew Tomsen3-Jan-05 1:02 
GeneralRe: HRESULT and Borland C++ Builder Pin
Jörgen Sigvardsson3-Jan-05 8:35
Jörgen Sigvardsson3-Jan-05 8:35 
QuestionHow to pass ASP Checkbox values to ATLCOM Dll Pin
Srihari_81852-Jan-05 22:30
Srihari_81852-Jan-05 22:30 
Generalofstream not working in unmanaged code Pin
sprinkler30-Dec-04 14:11
sprinkler30-Dec-04 14:11 
GeneralExecute javascript through c++ Pin
fe328-Dec-04 6:44
fe328-Dec-04 6:44 
GeneralCreating class wrappers for ActiveX controls (mappointctrl.ocx) Pin
BlackDice28-Dec-04 6:42
BlackDice28-Dec-04 6:42 
Questionhow can I reg the DLL for print Function(with code) Pin
wangguangda27-Dec-04 17:16
wangguangda27-Dec-04 17:16 
GeneralEXE COM Servers and Apartments Pin
Lim Bio Liong25-Dec-04 15:51
Lim Bio Liong25-Dec-04 15:51 
Hello All,

I have a question which I hope my esteemed peers here will be able to provide some comments :

1. After some time of researching, I found that a COM Object in a COM EXE Server cannot decide on its own Apartment Model (Apartment, Multithreaded, etc).

2. This is so despite indicating the model you want when creating an ATL COM object inside an EXE Server using the ATL Wizard.

3. The way to indicate the Apartment Model for your COM Object is to place your call to CoRegisterClassObject() on your COM Object Class Factory in a thread that has been initialized with CoInitializeEx(NULL, COINIT_MULTITHREADED) or CoInitializeEx(NULL, COINIT_APARTMENTTHREADED).

Any comments on this from anyone ?

Many Thanks, All,
Bio.

GeneralRe: EXE COM Servers and Apartments Pin
Martin Koorts4-Jan-05 0:09
Martin Koorts4-Jan-05 0:09 
GeneralRe: EXE COM Servers and Apartments Pin
Lim Bio Liong6-Jan-05 20:49
Lim Bio Liong6-Jan-05 20:49 
GeneralActiveX/COM on J# Pin
Maverick23-Dec-04 12:54
Maverick23-Dec-04 12:54 
GeneralCOM Controls Pin
csharp623-Dec-04 7:22
csharp623-Dec-04 7:22 
GeneralSimple (hopefully) event question Pin
__makaveli__21-Dec-04 23:54
__makaveli__21-Dec-04 23:54 
GeneralRe: Simple (hopefully) event question Pin
ThatsAlok22-Dec-04 17:28
ThatsAlok22-Dec-04 17:28 
GeneralRe: Simple (hopefully) event question Pin
__makaveli__6-Jan-05 5:19
__makaveli__6-Jan-05 5:19 
GeneralRe: Simple (hopefully) event question Pin
ThatsAlok6-Jan-05 6:36
ThatsAlok6-Jan-05 6:36 
GeneralRe: Simple (hopefully) event question Pin
__makaveli__6-Jan-05 7:23
__makaveli__6-Jan-05 7:23 
GeneralE_INVALIDARG with EnvDTE::Commands::AddNamedCommand Pin
Franz Klein21-Dec-04 21:35
Franz Klein21-Dec-04 21:35 
GeneralActiveX Control implementation in VB 6 app. Pin
nilesh v chauk21-Dec-04 2:43
nilesh v chauk21-Dec-04 2:43 
GeneralDumb COM Interop question Pin
steve_hocking20-Dec-04 23:15
steve_hocking20-Dec-04 23:15 
GeneralRe: Dumb COM Interop question Pin
steve_hocking20-Dec-04 23:40
steve_hocking20-Dec-04 23:40 
QuestionWIA Automation: how to get video stream? Pin
ralfoide20-Dec-04 10:06
ralfoide20-Dec-04 10:06 
GeneralDigi96/8 microsoft synthesizer Pin
Member 160064319-Dec-04 9:54
Member 160064319-Dec-04 9:54 
GeneralModem_to_Sound_Card Pin
Vova2118-Dec-04 4:04
Vova2118-Dec-04 4:04 
GeneralRe: Modem_to_Sound_Card Pin
ThatsAlok20-Dec-04 0:59
ThatsAlok20-Dec-04 0:59 

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.