Shady Atef
Shady Atef

Reputation: 2401

Reference un-managed class in C# Project

I have problem using zkemkeeper.dll in C# project. I have installed the sdk, copied files and run regsrv32 as instructed. But I am stuck with the following error

The type or namespace name 'zkemkeeper' could not be found (are you missing a      using directive or an assembly reference?

The failing code line is

public zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();

Dllimport don't work, so any help ?

Upvotes: 0

Views: 728

Answers (1)

Virgilio Cossa
Virgilio Cossa

Reputation: 29

Just go to the proprieties of your dll reference and set the value for Embed Interop Type to "False"

Upvotes: 2

Related Questions