I have 2 application built by C# ,
Scanner :
Is for scanning documents using special Dll Files built by c language .
The Second application built by C# also :
Runner Application :
is to run the Scanner application .
The Strange issue is :
IF I luanch the scanner app from the runner app an error will be generated because it doesn't find the Dll files .
So I try to copy and paste the dll files from Scanner/bin/Debug to runner/bin/debug
so the scanner runs correctly without any problems.
So I notice that the problem is Dll registration or dll link .
I tried to register the dll it fails , I tried to copy the dll to windows/system32 also it doesnot work.
I think the issue will be solved if I link the dll files while importing it>
[DllImport("ScanDll.dll")]
public static extern int IO_GetIDImage_File(int lImageType, int lCardType, int lCompressRet, string szFileOutPut);
Why if I start the scanner app from the runner app it search for the dll file inside runner/bin/debug not in scanner/bin/debug ????
Please need your expert to help me in that issue...

New Topic/Question
Reply



MultiQuote






|