Step by Step Setup Guide for Dynamic Webcam SDK ActiveX in Visual Studio

Below is a simple step by step guide on how to use Dynamic Webcam ActiveX:

1. Install Dynamic Webcam 8.0 SDK TRIAL.exe.

2. Generate a LPK file and name it "DynamicWebcam.lpk".

3. Create a Web Application in Visual Studio.

4. Go to the installation folder of Dynamic Webcam, copy the file called "" and the newly created LPK file "DynamicWebcam.lpk" to the directory of your web application.

5. Add the object tag for LPK file in the "Default.aspx":
<object classid = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<param name="LPKPath" value="DynamicWebcam.lpk" />

6. Add the object tag for Dynamic Webcam in the "Default.aspx":
<object classid="clsid:A65BC1E1-B2CE-4251-A0CB-721AC7E02B52" id="DynamicWebcam1" width="500" height="500"
CodeBase = ",0">
<param name="_cx" value="847" />
<param name="_cy" value="847" />
<param name="JpgQuality" value="80" />
<param name="Manufacturer" value="Dynamsoft Corporation" />
<param name="TransferMode" value="0" />
<param name="BorderStyle" value="0" />
<param name="FTPUserName" value="" />
<param name="FTPPassword" value="" />
<param name="FTPPort" value="21" />
<param name="HTTPUserName" value="" />
<param name="HTTPPassword" value="" />
<param name="HTTPPort" value="80" />
<param name="ProxyServer" value="" />
<param name="IfDisableSourceAfterAcquire" value="0" />
<param name="IfShowUI" value="1" />
<param name="IfModalUI" value="1" />
<param name="IfTiffMultiPage" value="0" />
<param name="IfThrowException" value="0" />
<param name="MaxImagesInBuffer" value="1" />
<param name="TIFFCompressionType" value="0" />

Note: Change the classid to "D5DD8865-F46B-41C4-98F3-6990A6AD97F5" if you are using the full version of Dynamic Webcam ActiveX.

7. Add a button to use Dynamic Webcam to acquire:

<input id="btnAcquire" style="width: 100px; height: 30px" onclick="return btnAcquire_onclick()" type="button" value="Acquire" />

and the related JavaScript Code:

function btnAcquire_onclick() {
Webcam = document.getElementById(
Webcam.IfShowUI =
Webcam.MaxImagesInBuffer = 100;

8. Run the application.

9. Add the properties/methods that you need to the application. You can check out our online demo.