Title: Error message when you drag and drop the AFIS component to a form in Visual Studio 2005: "Failed to import the ActiveX control."
SYMPTOMS
Error message when you drag and drop the AFIS component to a form in Visual Studio 2005 shows up: "Failed to import the ActiveX control.
Problem using Griaule AFIS SDK with DEP enabled.
CAUSE
Minor bugs that will be corrected in the next version.
SOLUTION
Download AFIS ActiveX 1.0.10 or later
If Visual Studio is opened, close it;
Replace GriauleAfisX.dll with the version 1.0.10 you downloaded;
Check if the ActiveX GriauleAfis is registered correctly (regsvr32 GriauleAfisX.dll);
Open the project in the Visual Studio again;
Check if the component is imported and active on the "Toolbox";
If you are using VS 2005, before drag and drop the component GriauleAfis to the form, add a reference to the OLE Automation in your project:
( This step is necessary, because VS2005 does not know how to resolve the dependences about the COM stdole. And it does not know to compile the assembly wrapper AxGriauleAfisXLib.dll.
- In "Solution Explorer", click with the right button on your project;
- Click "Add Reference";
- Select the option "COM";
- Select the component "OLE Automation";
- Click "OK";
Drag and drop the component GriauleAfis to the Form.