VS2010 add a .dll reference error
I am trying to add a DLL to my project but there are some problems. first of all, VS dont compile when I add the dll in references. it shows the error :
The "NativeAssemblies=@(NativeReferenceFile);@(_DeploymentNativePrerequisite)" parameter for the "ResolveManifestFiles" task is invalid.
The "Re开发者_开发问答solveManifestFiles" task could not be initialized with its input parameters.
anyone can tell me what is wrong ?
A similar question was asked previously. You can refer to the links below to see if it helps alleviate your errors.
See this StackOverflow question : ResolveManifestFiles
MSDN Forums - Discussion
Regsvr32 Usage and Errors
I have already resolved the problem.
first, the dll isn´t a .NET dll so I has to put it in bin/debug directory of project folder.
then I access it with :
[DllImportAttribute(@".\LDACTL.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int LDA_GetStatus();
LDA_GetStatus() is a function on dll....
精彩评论