<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by cosminb</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/cosminb/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by cosminb</title>
		<link>http://channel9.msdn.com/Niners/cosminb/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/cosminb/Discussions</link>
	<language>en</language>
	<pubDate>Sun, 19 May 2013 22:33:07 GMT</pubDate>
	<lastBuildDate>Sun, 19 May 2013 22:33:07 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Tech Off - Computer Science Final Year Project</title>
		<description><![CDATA[<p>I was in your situation a year ago (although a bit different). I am a student of Industrial Automatics and Informatics. I didn't want to go deep into microcontrollers, capacitors and the like, I am a software developer, and I wanted my project to be mainly
 focused on programming, rather than designing circuits. However this was not entirely possible, so I had to stick some hardware stuff also.<br>
<br>
A professor gave me an excellent idea, which wasn't quite original, but still, it saved me. He told me to build a 3D object scanner. The hardware part consists of controlling a stepper motor through the parallel port, which is quite easy and there is alot of
 dcumentation about this on the internet. The other part consists of using a webcam, setting its parameters and taking shots.<br>
<br>
The working principle can be found here (it's not my site): <a href="http://www.muellerr.ch/engineering/laserscanner/default.htm">http&#58;&#47;&#47;www.muellerr.ch&#47;engineering&#47;laserscanner&#47;default.htm</a><br>
<br>
For this I am using C# 2.0, Visual Studio 2005 Express Edition, Avalon/WPF, DirectShow, Direct3D, and maybe more. Anyway, the project isn't yet finished, after presenting it, I wil most likely put it somewhere, with source code included.<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/176161-Computer-Science-Final-Year-Project/80a809f08e564f9484649dea013b7b3c#80a809f08e564f9484649dea013b7b3c</link>
		<pubDate>Wed, 19 Apr 2006 15:00:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/176161-Computer-Science-Final-Year-Project/80a809f08e564f9484649dea013b7b3c#80a809f08e564f9484649dea013b7b3c</guid>
		<dc:creator>cosminb</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cosminb/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - extending WPF/Avalon/XAML - webcam preview</title>
		<description><![CDATA[<p>Well, I just got some comments on this one, and it doesn't have a nice way around: <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=296765&amp;SiteID=1">http&#58;&#47;&#47;forums.microsoft.com&#47;MSDN&#47;ShowPost.aspx&#63;PostID&#61;296765&#38;SiteID&#61;1</a><br>
<br>
I will keep asking, until I get a clear view on how to do it.<br>
<br>
Edit:<br>
<br>
So far I've managed to get it to work in Windows Forms and Direct3D, if you're interested in some code.<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/171582-extending-WPFAvalonXAML-webcam-preview/c5580775b51147eab5389dea013a765c#c5580775b51147eab5389dea013a765c</link>
		<pubDate>Fri, 31 Mar 2006 06:24:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/171582-extending-WPFAvalonXAML-webcam-preview/c5580775b51147eab5389dea013a765c#c5580775b51147eab5389dea013a765c</guid>
		<dc:creator>cosminb</dc:creator>
		<slash:comments>8</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cosminb/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - extending WPF/Avalon/XAML - webcam preview</title>
		<description><![CDATA[<p>Actually what I'm trying to do is to target WPF, not Windows Forms. Windows Forms are already covered by my library.<br>
<br>
So this is what I want to implement in Avalon: I want to display the preview video (taken directly from the webcam) in a similar way to how MediaElement works. So I want to be able to preview inside various shapes, or in 3D (I've seen a sample in Hands-On-Labs
 where there was a video file playing this way: inside shapes, and on the faces of a cube).<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/171582-extending-WPFAvalonXAML-webcam-preview/87410efb8dae4fe7917b9dea013a760a#87410efb8dae4fe7917b9dea013a760a</link>
		<pubDate>Mon, 27 Mar 2006 11:11:03 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/171582-extending-WPFAvalonXAML-webcam-preview/87410efb8dae4fe7917b9dea013a760a#87410efb8dae4fe7917b9dea013a760a</guid>
		<dc:creator>cosminb</dc:creator>
		<slash:comments>8</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cosminb/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - extending WPF/Avalon/XAML - webcam preview</title>
		<description><![CDATA[<p><font class="fixed_width" face="Courier, Monospaced">Hello C9ers,<br>
<br>
I'm having some trouble figuring out how to do this: I've developed a camera library in C&#43;&#43;/CLI which I use further in C# apps. After making it accessible to Windows Forms and Direct3D, I want to give Avalon/WPF a try, but this is where I got a bit stuck (lack
 of proper information). As you can see from the thread's title, I want to achieve<br>
the same functionality that currently is given by MediaElement/MediaPlayer. I want to be able to output my webcam preview video to any Visual element in WPF. How do I do that? Do I need to subclass MediaElement? Or MediaPlayer? Or something else. And how do
 I customize it? I hope someone has an answer to this really soon, I'm<br>
betting my final year project on this.<br>
<br>
</font>Thanks in advance, <br>
<p><font class="fixed_width" face="Courier, Monospaced">Cosmin. <br>
</font></p>
<font class="fixed_width" face="Courier, Monospaced">P.S. Also, I want to know if C&#43;&#43;/CLI can be used to subclass the controls, or it has to be done in C#.<br>
<br>
I've tried several places to get this info, noone seems to care... I hope C9 will.<br>
</font></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/171582-extending-WPFAvalonXAML-webcam-preview/171582#171582</link>
		<pubDate>Sun, 26 Mar 2006 10:25:09 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/171582-extending-WPFAvalonXAML-webcam-preview/171582#171582</guid>
		<dc:creator>cosminb</dc:creator>
		<slash:comments>8</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cosminb/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Writing a managed version of ICreateDevEnum</title>
		<description><![CDATA[<p>Actually the whole problem reduces to being able to pass an interface as a parameter to a function:<br>
<br>
namespace InterfaceTest<br>
{<br>
<br>
&nbsp;&nbsp;&nbsp; public interface class Intf<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; void Read();<br>
&nbsp;&nbsp;&nbsp; };<br>
<br>
&nbsp;&nbsp;&nbsp; public ref class Class1<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; void Something(Intf i)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; };<br>
<br>
}<br>
<br>
<br>
This yields on the function 'Something':<br>
<br>
error C3149: 'InterfaceTest::Intf' : cannot use this type here without a top-level '^'<br>
<br>
Thanks<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/166409-Writing-a-managed-version-of-ICreateDevEnum/7e32ddc70c904a9b8f1e9dea01390803#7e32ddc70c904a9b8f1e9dea01390803</link>
		<pubDate>Sat, 11 Mar 2006 20:51:57 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/166409-Writing-a-managed-version-of-ICreateDevEnum/7e32ddc70c904a9b8f1e9dea01390803#7e32ddc70c904a9b8f1e9dea01390803</guid>
		<dc:creator>cosminb</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cosminb/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Writing a managed version of ICreateDevEnum</title>
		<description><![CDATA[<p>I have the following interface from &quot;strmif.h&quot; (DirectShow stuff):<br>
<br>
&nbsp;&nbsp;&nbsp; MIDL_INTERFACE(&quot;29840822-5B84-11D0-BD3B-00A0C911CE86&quot;)<br>
&nbsp;&nbsp;&nbsp; ICreateDevEnum : public IUnknown<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; public:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; virtual HRESULT STDMETHODCALLTYPE CreateClassEnumerator( <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* [in] */ REFCLSID clsidDeviceClass,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* [out] */ IEnumMoniker **ppEnumMoniker,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* [in] */ DWORD dwFlags) = 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; };<br>
<br>
I have found it described in C# like this (in a project called DShow.NET):<br>
<br>
&nbsp;&nbsp;&nbsp; [ComVisible(true), ComImport,<br>
&nbsp;&nbsp;&nbsp; Guid(&quot;29840822-5B84-11D0-BD3B-00A0C911CE86&quot;),<br>
&nbsp;&nbsp;&nbsp; InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]<br>
public interface ICreateDevEnum<br>
{<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [PreserveSig]<br>
&nbsp;&nbsp;&nbsp; int CreateClassEnumerator(<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [In]&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ref Guid&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pType,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [Out]&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; out UCOMIEnumMoniker&nbsp;&nbsp;&nbsp; ppEnumMoniker,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [In]&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dwFlags );<br>
}<br>
<br>
The generated MSIL for the function is:<br>
<br>
.method public hidebysig newslot abstract virtual <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; instance int32&nbsp; CreateClassEnumerator([in] valuetype [mscorlib]System.Guid&amp; pType,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [out] class [mscorlib]System.Runtime.InteropServices.UCOMIEnumMoniker&amp; ppEnumMoniker,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [in] int32 dwFlags) cil managed preservesig<br>
{<br>
} // end of method ICreateDevEnum::CreateClassEnumerator<br>
<br>
<br>
And now my question is: How to represent this interface in C&#43;&#43;/CLI? I use VS2005, and tried several times, but it doesn't compile. I am stuck on the IEnumMoniker parameter, don't know how to declare it.<br>
<br>
Does anyone have an idea on how to write this interface in C&#43;&#43;/CLI, so that I am able to cast the COM server 'SystemDeviceEnum' to the interface 'ICreateDevEnum'?<br>
<br>
Thanks,<br>
Cosmin<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/166409-Writing-a-managed-version-of-ICreateDevEnum/166409#166409</link>
		<pubDate>Sat, 11 Mar 2006 20:10:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/166409-Writing-a-managed-version-of-ICreateDevEnum/166409#166409</guid>
		<dc:creator>cosminb</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cosminb/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Discussion around the Coding4Fun Some Assembly Required Articles</title>
		<description><![CDATA[<p>I am also having problems with the WIA WebCam source code. It does compile, but whenever I want to configure it (select the device), immediately after clicking on configure I get an exception:<br>
<br>
Exception from HRESULT: 0x80210015<br>
Source: Interop.WIA<br>
at WIA.CommonDialogClass.ShowSelectDevice(...)<br>
<br>
Anyone encountered this error? I use a Chicony TwinkleCam Pro DC2120 webcam. Also, it is listed in the &quot;Scanners and Cameras&quot; section of the Control Panel.<br>
<br>
Does anyone know what the problem is? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-6.gif' alt='Sad' /><br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/76733-Discussion-around-the-Coding4Fun-Some-Assembly-Required-Articles/ca7ac8ab0057441086629dea01232722#ca7ac8ab0057441086629dea01232722</link>
		<pubDate>Sat, 31 Dec 2005 18:33:06 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/76733-Discussion-around-the-Coding4Fun-Some-Assembly-Required-Articles/ca7ac8ab0057441086629dea01232722#ca7ac8ab0057441086629dea01232722</guid>
		<dc:creator>cosminb</dc:creator>
		<slash:comments>25</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cosminb/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>