Click here to Skip to main content
15,898,987 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to diagnose and to detect down clients and servers Pin
16-Jul-01 23:46
suss16-Jul-01 23:46 
GeneralMultiple Inheritence of an ATL object Pin
12-Jul-01 23:18
suss12-Jul-01 23:18 
Generalinterfaces Pin
Gabriel.P.G12-Jul-01 17:05
Gabriel.P.G12-Jul-01 17:05 
GeneralRe: interfaces Pin
16-Jul-01 11:35
suss16-Jul-01 11:35 
GeneralCOM behind/in front of the firewall Pin
12-Jul-01 6:12
suss12-Jul-01 6:12 
Generaltutorials for com Pin
anu11-Jul-01 18:23
anu11-Jul-01 18:23 
GeneralRe: tutorials for com Pin
Michael Dunn11-Jul-01 20:32
sitebuilderMichael Dunn11-Jul-01 20:32 
GeneralCoInitializeEx Pin
11-Jul-01 13:16
suss11-Jul-01 13:16 
He all you COM gurus,

can you help a complete retard out of jam.

Hopefully this is related enough to COM to be in this forum.

I was wanting to play around with DirectPLay8.

Taking the SimpleServer Example Code that comes with the
DirectX 8.0 SDk, i am simply trying to transferr the code from Win32 api
and make it a little more modular in a MFC project.

but i ran into the snag of i cant even get COM to initialize.

taking the following line from the sample code


// Init COM so we can use CoCreateInstance
CoInitializeEx( NULL, COINIT_MULTITHREADED );

I get the following compile error:

error C2065: 'CoInitializeEx' : undeclared identifier
error C2065: 'COINIT_MULTITHREADED' : undeclared identifier

these two are defined in objbase.h.

I included all the files from the sample code:


#include <basetsd.h>
#include <dplay8.h>
#include <dpaddr.h>
#include <dxerr8.h>

#include "DXUtil.h"


and all the libs from the project:

dplay.lib dxguid.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib odbc32.lib odbccp32.lib dxerr8.lib winmm.lib kernel32.lib user32.lib ole32.lib uuid.lib

but it still doenst seem to include objbase.h

what am i missing? I just want to make this little line of code Initialize COM
and i will die happy.

thanks
GeneralOK OK its DCOM Pin
11-Jul-01 13:26
suss11-Jul-01 13:26 
GeneralOK Apologies. Pin
11-Jul-01 13:34
suss11-Jul-01 13:34 
GeneralIHTMLElement and IHTMLElement2 and IHTMLWindow2 Pin
Oguzhan ERKAN11-Jul-01 4:54
Oguzhan ERKAN11-Jul-01 4:54 
GeneralCom interface with SQL to MSDE database Pin
Bigge10-Jul-01 23:27
Bigge10-Jul-01 23:27 
GeneralRe: Com interface with SQL to MSDE database Pin
11-Jul-01 8:35
suss11-Jul-01 8:35 
GeneralRe: Com interface with SQL to MSDE database Pin
Bigge12-Jul-01 1:22
Bigge12-Jul-01 1:22 
GeneralRe: Com interface with SQL to MSDE database Pin
12-Jul-01 2:04
suss12-Jul-01 2:04 
GeneralUsing A Collection - Newbie Pin
AJ1239-Jul-01 11:48
AJ1239-Jul-01 11:48 
GeneralRe: Using A Collection - Newbie Pin
9-Jul-01 14:42
suss9-Jul-01 14:42 
GeneralLots o' quick ATL COM/DCOM questions Pin
Pavlos Touboulidis9-Jul-01 10:08
Pavlos Touboulidis9-Jul-01 10:08 
GeneralRe: Lots o' quick ATL COM/DCOM questions Pin
9-Jul-01 14:54
suss9-Jul-01 14:54 
GeneralRe: Lots o' quick ATL COM/DCOM questions Pin
Pavlos Touboulidis9-Jul-01 22:02
Pavlos Touboulidis9-Jul-01 22:02 
GeneralWin2000 COM issue (maybe) Pin
Chris Klecker6-Jul-01 5:55
Chris Klecker6-Jul-01 5:55 
Generalcatching COM event in console app Pin
4-Jul-01 13:53
suss4-Jul-01 13:53 
Questionhow do I implement IStorage methods Pin
pathi3-Jul-01 22:39
pathi3-Jul-01 22:39 
AnswerRe: how do I implement IStorage methods Pin
4-Jul-01 12:17
suss4-Jul-01 12:17 
GeneralWTL/ATL & CDateTimePickerCtrl Pin
3-Jul-01 9:34
suss3-Jul-01 9:34 

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.