Home > Net >  About winForm project a strange question. Online, etc
About winForm project a strange question. Online, etc

Time:03-31

The project target framework is net4.5 originally, and then I changed to 4.0, run to the access to the unmanaged DLL times wrong, it is strange that change again to 4.5 but still can't access, can not only bring the original project running access (fortunately, I have a backup), which is why,
Reference as follows: thank you all for the great god!
 
[DllImport (" GHC_GetIDCardInfo. DLL)]
Public static extern int GHC_Dev_Connect (int Port, byte Extport, int Baud);


CodePudding user response:

Cut 4.5 4.0 there are several system DLLS can change version or directly dereference together, then cut back to 4.5 need to check the DLL version, but also to dereference the DLL and back

CodePudding user response:

Change the target platform to try x86

CodePudding user response:

I know what reason, 4.5 to select this, but 4.0 this can't choose, so what can we do,

CodePudding user response:

DLL referenced problem?

CodePudding user response:

The target platform to the x86.,,
  •  Tags:  
  • C#