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

COM

 
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 
GeneralRe: EXE COM Servers and Apartments Pin
Martin Koorts4-Jan-05 0:09
Martin Koorts4-Jan-05 0:09 
Hi Bio

Inspecting the CAtlExeModuleT class (from the ATL classes shipping with VC.net 2003), I notice the InitializeCom method, quoted below;

<snip>
static HRESULT InitializeCom() throw()
{

#if ((_WIN32_WINNT >= 0x0400 ) || defined(_WIN32_DCOM)) & defined(_ATL_FREE_THREADED)
return CoInitializeEx(NULL, COINIT_MULTITHREADED);
#else
return CoInitialize(NULL);
#endif
}
<snip>

which would lead me to believe that by setting _WIN32_WINNT, _WIN32_DCOM, and/or _ATL_FREE_THREADED to the desired values, you would be able to have the server enter the apartment of your choice.

HTH


Martin
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 
GeneralRe: Modem_to_Sound_Card Pin
Anonymous3-Jan-05 8:35
Anonymous3-Jan-05 8:35 

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.