Hello everyone,
I would like to translate a wia scanner application from C # to X #, but with ilspy it can't.
Any advice?
Attach application.
Thanks to all
Danilo
Scanner WIA
- softdevo@tiscali.it
- Posts: 191
- Joined: Wed Sep 30, 2015 1:30 pm
Scanner WIA
- Attachments
-
- Scannerapplication.zip
- (211.47 KiB) Downloaded 113 times
Scanner WIA
Hi Danilo
My advice would be "Try to use the scanner in your program in a different way".
I haven't used it myself, but it is, I think, part of Windows NOT .Net nor therefore iLSpy.
Terry
My advice would be "Try to use the scanner in your program in a different way".
I haven't used it myself, but it is, I think, part of Windows NOT .Net nor therefore iLSpy.
Terry
Scanner WIA
Hi Danilo,
Here's the X# version as a XIDE app. Just add the app with Project/Add Existing/Add Application, pick the .viapp file and it should directly compile and run. Thanks for posting this nice sample!
Here's the X# version as a XIDE app. Just add the app with Project/Add Existing/Add Application, pick the .viapp file and it should directly compile and run. Thanks for posting this nice sample!
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Scanner WIA
Hello Terry,
I opened the Scannerapplication.exe from the .exe directory in ILSpy and this showed me X# code without problems. I guess Chris has seen this working too, given his translated X# project in just under 2 hours after posting it.
Dick
Danilo included the C# project (VS solution). You can see it is a .Net application for sure.Terry wrote:Hi Danilo
I haven't used it myself, but it is, I think, part of Windows NOT .Net nor therefore iLSpy.
I opened the Scannerapplication.exe from the .exe directory in ILSpy and this showed me X# code without problems. I guess Chris has seen this working too, given his translated X# project in just under 2 hours after posting it.
Dick
Scanner WIA
Hi Dick
Thanks Dick
You're right. I should not have jumped in from distant memories.
Terry
Thanks Dick
You're right. I should not have jumped in from distant memories.
Terry
- softdevo@tiscali.it
- Posts: 191
- Joined: Wed Sep 30, 2015 1:30 pm
Scanner WIA
Thanks perfect, as always you are very generous
Danilo
Danilo
- softdevo@tiscali.it
- Posts: 191
- Joined: Wed Sep 30, 2015 1:30 pm
Scanner WIA
So maybe I didn't understand how ILspy works
Danilo
Danilo
Scanner WIA
Hello Danilo,
You do not get a full blown project, but you will see the code class by class. Also don't expect 100% perfect translation. Sometimes you get code which probably works but which could be done more straightforward differently.
Hope this helps.
Dick
You just open the exe of the project you want to convert which (in a VS solution) can be found in binrelease or bindebug. Then you select the language from the top and you can see the different classes and methods in that language. Be sure you have downloaded the DLL from https://www.xsharp.eu/itm-downloads?fol ... %252FTools and placed that DLL in the ILSpy directory where the exe resides). Otherwise there is no X# option.softdevo@tiscali.it wrote:So maybe I didn't understand how ILspy works
You do not get a full blown project, but you will see the code class by class. Also don't expect 100% perfect translation. Sometimes you get code which probably works but which could be done more straightforward differently.
Hope this helps.
Dick
Scanner WIA
Hello Terry,
However, you could have been right, some tools do not seem to work and then the reason is that the tool expects Win32 exe's when it's a .Net program or the other way around. I had the same issue a while ago.
Dick
Terry wrote:Hi Dick
You're right. I should not have jumped in from distant memories.
However, you could have been right, some tools do not seem to work and then the reason is that the tool expects Win32 exe's when it's a .Net program or the other way around. I had the same issue a while ago.
Dick
- softdevo@tiscali.it
- Posts: 191
- Joined: Wed Sep 30, 2015 1:30 pm
Scanner WIA
Thank you Dick, Valuable tip
Danilo
Danilo