Click here to Skip to main content
15,896,153 members
Articles / Desktop Programming / ATL

Webcam Web Service

Rate me:
Please Sign up or sign in to vote.
4.30/5 (25 votes)
23 Apr 20025 min read 410.3K   11.2K   142  
C++ ATL Web Service delivering a JPEG picture grabbed from a Webcam to an ActiveX client
//
// CamServer.idl : IDL source for CamServer.dll
//
// Written by Laurent Kemp� (lkempe@netcourrier.com) for Tech Head WebSite
// Copyright (c) 2001 Laurent Kemp�.
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed by any means PROVIDING it is 
// not sold for profit without the authors written consent, and 
// providing that this notice and the authors name is included. 
//
// This file is provided "as is" with no expressed or implied warranty.
// The author accepts no liability if it causes any damage to you or your
// computer whatsoever. It's free, so don't hassle me about it.
//

// This file will be processed by the MIDL tool to
// produce the type library (CamServer.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(E3ACF3FE-9052-46D8-A33A-047E9891088E),
		dual,
		helpstring("ICamera Interface"),
		pointer_default(unique)
	]
	interface ICamera : IDispatch
	{
		[id(1)] HRESULT GrabFrame([in] short nQuality, [out, retval] SAFEARRAY(unsigned char) * ppGrabbedPicture );
	};

[
	uuid(00A08B61-E7CF-4D2B-8ED6-4F25EA51E2FD),
	version(1.0),
	helpstring("CamServer 1.0 Type Library")
]
library CAMSERVERLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(D6BA1539-8473-497C-92C3-8ECF63DAC0F3),
		helpstring("Camera Class")
	]
	coclass Camera
	{
		[default] interface ICamera;
	};
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Team Leader
France France
I am an experienced Team Leader & Senior Solutions Architect with a passion for shipping high-quality products by empowering development team and culture toward an agile mindset. I bring technical vision and strategy, leading engineering teams to move product, processes and architecture forward.

Comments and Discussions