Click here to Skip to main content
15,915,791 members
Home / Discussions / COM
   

COM

 
Questionprinter shell extension Pin
eisbaer311223-Jan-06 22:53
eisbaer311223-Jan-06 22:53 
AnswerRe: printer shell extension Pin
eisbaer31122-Feb-06 4:27
eisbaer31122-Feb-06 4:27 
QuestionICopyHook Pin
ragavan23-Jan-06 3:00
ragavan23-Jan-06 3:00 
QuestionCOM client must recompile when server compiled? Pin
WernerP23-Jan-06 1:55
WernerP23-Jan-06 1:55 
Questionwhat is a interface? Pin
vikas amin22-Jan-06 19:28
vikas amin22-Jan-06 19:28 
AnswerRe: what is a interface? Pin
Stephen Hewitt22-Jan-06 22:35
Stephen Hewitt22-Jan-06 22:35 
AnswerRe: what is a interface? Pin
Danish jibbran29-Jan-06 1:37
Danish jibbran29-Jan-06 1:37 
Questionabout IMediaSeeking Pin
abstarsss22-Jan-06 17:57
abstarsss22-Jan-06 17:57 
hi guys;
the IMediaSeeking @ Duration didn't work, any thougth about that?

the code would be:
#pragma once

using namespace System;
using namespace System::Runtime::InteropServices;

namespace QuartzTypeLib
{

[StructLayout(LayoutKind::Sequential), ComVisible(false)]
public ref class DsOptInt64
{
public:
DsOptInt64( long Value )
{
this->Value = Value;
}
long Value;
};


[Flags, ComVisible(false)]
public enum class SeekingCapabilities // AM_SEEKING_SeekingCapabilities AM_SEEKING_SEEKING_CAPABILITIES
{
CanSeekAbsolute = 0x001,
CanSeekForwards = 0x002,
CanSeekBackwards = 0x004,
CanGetCurrentPos = 0x008,
CanGetStopPos = 0x010,
CanGetDuration = 0x020,
CanPlayBackwards = 0x040,
CanDoSegments = 0x080,
Source = 0x100 // Doesn't pass thru used to count segment ends
};

[Flags, ComVisible(false)]
public enum class SeekingFlags // AM_SEEKING_SeekingFlags AM_SEEKING_SEEKING_FLAGS
{
NoPositioning = 0x00, // No change
AbsolutePositioning = 0x01, // Position is supplied and is absolute
RelativePositioning = 0x02, // Position is supplied and is relative
IncrementalPositioning = 0x03, // (Stop) position relative to current, useful for seeking when paused (use +1)
PositioningBitsMask = 0x03, // Useful mask
SeekToKeyFrame = 0x04, // Just seek to key frame (performance gain)
ReturnTime = 0x08, // Plug the media time equivalents back into the supplied LONGLONGs
Segment = 0x10, // At end just do EC_ENDOFSEGMENT, don't do EndOfStream
NoFlush = 0x20 // Don't flush
};

[ComVisible(true), ComImport,
Guid("36b73880-c2c8-11cf-8b46-00805f6cef60"),
InterfaceType( ComInterfaceType::InterfaceIsIUnknown )]
public interface class IMediaSeeking
{
[PreserveSig]
int GetCapabilities(SeekingCapabilities &pCapabilities );

[PreserveSig]
int CheckCapabilities( [In, Out] SeekingCapabilities &pCapabilities );

[PreserveSig]
int IsFormatSupported( [In] Guid& pFormat );
[PreserveSig]
int QueryPreferredFormat( [Out] Guid& pFormat );

[PreserveSig]
int GetTimeFormat( [Out] Guid& pFormat );
[PreserveSig]
int IsUsingTimeFormat( [In] Guid& pFormat );
[PreserveSig]
int SetTimeFormat( [In] Guid& pFormat );

[PreserveSig]
int GetDuration( long& pDuration );
[PreserveSig]
int GetStopPosition( long& pStop );
[PreserveSig]
int GetCurrentPosition( long &pCurrent );

[PreserveSig]
int ConvertTimeFormat( long& pTarget, [In] Guid& pTargetFormat,
long& Source, [In] Guid& pSourceFormat );

[PreserveSig]
int SetPositions(
[In, Out, MarshalAs(UnmanagedType::LPStruct)] DsOptInt64^ pCurrent,
SeekingFlags dwCurrentFlags,
[In, Out, MarshalAs(UnmanagedType::LPStruct)] DsOptInt64^ pStop,
SeekingFlags dwStopFlags );

[PreserveSig]
int GetPositions( long &pCurrent, long &pStop );

[PreserveSig]
int GetAvailable( long &pEarliest, long &pLatest );

[PreserveSig]
int SetRate( double dRate );
[PreserveSig]
int GetRate( double& pdRate );

[PreserveSig]
int GetPreroll( long &pllPreroll );
};





}


thanks
QuestionAttempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
godspeed12322-Jan-06 7:39
godspeed12322-Jan-06 7:39 
AnswerRe: Attempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
Stephen Hewitt22-Jan-06 15:55
Stephen Hewitt22-Jan-06 15:55 
GeneralRe: Attempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
Vi224-Jan-06 4:21
Vi224-Jan-06 4:21 
Questionpass asp byte array to com object? Pin
mack scynox20-Jan-06 23:38
mack scynox20-Jan-06 23:38 
QuestionHow to export a class in c++ dll. Pin
srinu.m20-Jan-06 3:35
srinu.m20-Jan-06 3:35 
AnswerRe: How to export a class in c++ dll. Pin
Stephen Hewitt20-Jan-06 14:53
Stephen Hewitt20-Jan-06 14:53 
AnswerRe: How to export a class in c++ dll. Pin
Stephen Hewitt20-Jan-06 16:33
Stephen Hewitt20-Jan-06 16:33 
GeneralRe: How to export a class in c++ dll. Pin
srinu.m22-Jan-06 15:51
srinu.m22-Jan-06 15:51 
Questionanyboby can give the link for download Ebook of inside com Pin
baldha rakesh19-Jan-06 17:39
baldha rakesh19-Jan-06 17:39 
QuestionI need some info on active documents Pin
UsmanMKhan19-Jan-06 2:30
UsmanMKhan19-Jan-06 2:30 
QuestionAccessing file system in client with .net winform control used as Activex in page Pin
Daniel Santillanes18-Jan-06 13:28
professionalDaniel Santillanes18-Jan-06 13:28 
QuestionSigning Assemblies with strong names Pin
oceanexplorer18-Jan-06 11:46
oceanexplorer18-Jan-06 11:46 
QuestionSet properties in the all ActiveX instances Pin
Andrey200617-Jan-06 23:03
Andrey200617-Jan-06 23:03 
QuestionHow to Debug the dependency dll from the vb Pin
srinu.m17-Jan-06 18:05
srinu.m17-Jan-06 18:05 
QuestionHow to get http response header from IE WebBrowser Control ? Pin
realroot16-Jan-06 18:23
realroot16-Jan-06 18:23 
AnswerRe: How to get http response header from IE WebBrowser Control ? Pin
Stephen Hewitt17-Jan-06 17:46
Stephen Hewitt17-Jan-06 17:46 
GeneralRe: How to get http response header from IE WebBrowser Control ? Pin
realroot17-Jan-06 20:39
realroot17-Jan-06 20:39 

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.