Click here to Skip to main content
15,927,592 members
Home / Discussions / COM
   

COM

 
GeneralRe: Apartment? Pin
geoff5-Jan-02 2:38
geoff5-Jan-02 2:38 
GeneralHelp! How to understanding marshaling! Pin
Kang wenzhen24-Dec-01 22:16
Kang wenzhen24-Dec-01 22:16 
GeneralRe: Help! How to understanding marshaling! Pin
Tim Smith25-Dec-01 2:36
Tim Smith25-Dec-01 2:36 
GeneralProblems with class header of COM object Pin
IGx8922-Dec-01 8:52
IGx8922-Dec-01 8:52 
GeneralRe: Problems with class header of COM object Pin
IGx8922-Dec-01 8:56
IGx8922-Dec-01 8:56 
GeneralRe: Problems with class header of COM object Pin
Michael Dunn22-Dec-01 14:51
sitebuilderMichael Dunn22-Dec-01 14:51 
GeneralRe: Problems with class header of COM object Pin
IGx8922-Dec-01 16:01
IGx8922-Dec-01 16:01 
Generalusing IDirectDraw7 in a type library Pin
20-Dec-01 15:36
suss20-Dec-01 15:36 
How would i go about using IDirectDraw7 and IDirecDrawSurface7 inside my ATL type library.

The DirectShow IDL's do this but i cannot figure out how.
I've tried using "import "DDrawex.h" and "include "ddrawex.h" but these give type redefinitions.


Here's a clip from DirectShow's DDStream.idl

import "unknwn.idl";
import "mmstream.idl";

cpp_quote("//")
cpp_quote("// The following declarations within the 'if 0' block are dummy typedefs used to make")
cpp_quote("// the ddstream.idl file build. The actual definitions are contained in DDRAW.H")
cpp_quote("//")
cpp_quote("#if 0")
typedef void * LPDDSURFACEDESC;
typedef struct tDDSURFACEDESC DDSURFACEDESC;
cpp_quote("#endif")
cpp_quote("#include <ddraw.h>")

enum {
DDSFF_PROGRESSIVERENDER = 0x00000001
};

interface IDirectDraw;
interface IDirectDrawSurface;
interface IDirectDrawPalette;

interface IDirectDrawMediaStream;
interface IDirectDrawStreamSample;

// IDirectDrawMediaStream
[
object,
local,
uuid(F4104FCE-9A70-11d0-8FDE-00C04FD9189D),
pointer_default(unique)
]
interface IDirectDrawMediaStream : IMediaStream
{
HRESULT GetFormat(
[out] DDSURFACEDESC *pDDSDCurrent,
[out] IDirectDrawPalette **ppDirectDrawPalette,
[out] DDSURFACEDESC *pDDSDDesired,
[out] DWORD *pdwFlags);
....continued......

mmstream.idl doesn't use the directdraw interfaces at all.
Doing this gives me

error MIDL2337 : unsatisfied forward declaration : IDirectDrawSurface7

is there any way to do this? Confused | :confused:
Confused | :confused: Confused | :confused:

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken

Bobby Ward
GeneralATL and MFC OnIdle() Pin
Jamie Hale18-Dec-01 6:01
Jamie Hale18-Dec-01 6:01 
GeneralProblem identified... Pin
Jamie Hale18-Dec-01 9:27
Jamie Hale18-Dec-01 9:27 
GeneralRe: Problem identified... Pin
Ernest Laurentin18-Dec-01 9:48
Ernest Laurentin18-Dec-01 9:48 
GeneralRe: Problem identified... Pin
Jamie Hale18-Dec-01 10:19
Jamie Hale18-Dec-01 10:19 
GeneralOutput parameter for COM local server Pin
18-Dec-01 4:54
suss18-Dec-01 4:54 
GeneralRe: Output parameter for COM local server Pin
Michael P Butler18-Dec-01 5:04
Michael P Butler18-Dec-01 5:04 
GeneralRe: Output parameter for COM local server Pin
18-Dec-01 6:05
suss18-Dec-01 6:05 
QuestionHow to capture IE Event in WTL.... Pin
Huu Quynh18-Dec-01 3:37
Huu Quynh18-Dec-01 3:37 
GeneralSome Basic COM Questions Pin
ragamuffin16-Dec-01 8:49
ragamuffin16-Dec-01 8:49 
GeneralRe: Some Basic COM Questions Pin
Aaron Schaefer17-Dec-01 6:58
Aaron Schaefer17-Dec-01 6:58 
GeneralSIngletons, Threading, and Marshalling Pin
Not Active15-Dec-01 3:55
mentorNot Active15-Dec-01 3:55 
GeneralRe: SIngletons, Threading, and Marshalling Pin
Ernest Laurentin15-Dec-01 6:12
Ernest Laurentin15-Dec-01 6:12 
GeneralRe: SIngletons, Threading, and Marshalling Pin
Not Active15-Dec-01 9:30
mentorNot Active15-Dec-01 9:30 
GeneralCOM & Duel Processors Pin
Ancient Dragon13-Dec-01 13:06
Ancient Dragon13-Dec-01 13:06 
GeneralRe: COM & Duel Processors Pin
Ganesh Ramaswamy19-Dec-01 5:24
Ganesh Ramaswamy19-Dec-01 5:24 
GeneralCoInitializeEx ( ) Pin
Tim Rymer13-Dec-01 4:12
Tim Rymer13-Dec-01 4:12 
GeneralRe: CoInitializeEx ( ) Pin
Michael P Butler13-Dec-01 5:11
Michael P Butler13-Dec-01 5:11 

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.