I've working on project in vs2005, to make compact framework app to be launched under wince 6.0. In order to do that, I created the new project for the smart device.
creation of a new sda project
then I added a reference EasyModbus.dll.
Prior to this I copied the "EasyModbus.dll" file into the folder with project. Furthermore I added some code intending to Import the methods of this DLL into this project. When typing statement "Imports EasyModbus" I was surprised on having complained about error:
Namespace or type specified in the ImportsEasyModbus doesn't contain any public member or cannot be found. Make sure the namesppace or the type is defined and contains at least one public member. Make sure the imported element doesn't use any aliases
Could anyone kindly provide any suggestions, even very general and vague on possible reasons causing of emerging the error above?



"... Prior to this I copied the "EasyModbus.dll" file into the folder with project. Furthermore I added some code intending to Import the methods of this DLL into this project. ..."
I assume EasyModBus.dll is NOT a .NET CompactFramework library. I am not sure, as you did not rpovide details about "...added some code to import methods...". If EasyModBus.dll is a native Windows CE and processor compatible DLL, then you normally use [DLLImport("EasyModBus.dll")] and then declare the native functions wrapped in .NET code. Ie:
[DllImport( "user32.dll" )] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool EnumWindows( EnumWindowsProc lpEnumProc, IntPtr lParam );
If you can provide the DLL, I can look at and say if it is a .NET or native one.