Public class ImportDLL
{
[DllImport (" kernel32. DLL)]
Private extern static IntPtr LoadLibrary (String path);
Private IntPtr hLib;
Public ImportDLL (String DLLPath)
{
HLib=LoadLibrary (DLLPath);
}
}
HLib=LoadLibrary (DLLPath);
Thinking id card read DLL have dynamic library RdCard. DLL relies on sdtapi. DLL WltRS. Two DLLS,
Now with this method call without dependence on other DLLS are no problem, but call RdCard. DLL returns 0, call you don't succeed
Find a lot of way doesn't work, also tried to use LoadLibraryEx effect is
Request to people! thank you
CodePudding user response:
Send the wrong section, the code is the c # oh, the DLL directly to follow LoadLibrary to write good,Also need to be aware that DLL is 32 and 64 - bit version, if the original poster is a 64 - bit system, compile time to choose the 32-bit version of the X86 mode,
CodePudding user response:
Using c # language developmentasp.netThis problem is to find the answer, need three DLL to be included in the server system32 files
Debugging and running using the new problem is: the server DLL functions are no problem, but after the release of an error
Some say the IIS permissions, but don't know how to set up to run
CodePudding user response:
DLL on the website try bin directoryCodePudding user response:
System32 and bin directories are placed, debugging operation can beWhen publish
[AccessViolationException: Attempted to read or write protected memory. This is, an indication that other memory is corrupt.]
Common. J3K6U_InitDriver. Invoke () + 0
Common. JBC3500PFU. J3k6u_InitDriver (+ 78)
J3K6U_InitDriver is in the name of the DLL function call
CodePudding user response:
Problem again and again, updated, and finally found the client calls the DLL devices to read data, is not so easy,New problems come out again: javascript + activeX how call the DLL, because there is no ocx,
Only provide DLL
Wait for... .
CodePudding user response:
How no one answered,,... ...The above problem into the HTML called ActiveX is normal, but can still run when on the aspx view, the issue with an item, good entanglements
CodePudding user response:
Pro, I have to solve, I also have a release cannot access problems, urgent,CodePudding user response:
Seems to want to write a browser plug-in, it is better to develop a client?