AccessViolationException when we use twain_32.dll for scanning in windows 8.1 - scanning

I have an application which communicates with scanner and gets the image , it is working fine till windows 7 but it is failing in windows 8.1, we use twain(twain_32.dll) library for scanning purpose, Kindly help me

Make sure that the application id and source id which you are passing
to twain.dll is not null. From windows 8 and above, the ids can not be
null due to security reasons.

Related

Questions about Windows App (Metro) Tiles/Icons for desktop applications

I have an application written in VB.NET that I want to move to Win10. It will always be a desktop application, however I would like it to have a start icon / tile in Win 10. Looking around I found this exact question which suggests to create a Metro App (now I believe called Windows App) which launches the desktop app. This is also discussed in this thread. So the questions;
These threads are a little old is the best way in Win10 to give a desktop app a Windows App Tile by using a Windows App as the Launcher for the desktop app?
It appears that in Win10 Microsoft has now allowed non-store apps to be installed in Update Security > SideloadApps. This needs to be enabled to install the App, but does this need to be always enabled. For example what happens after install if the user turns it off, will the app then not start?
For example I see in this link that there are 2 Registry keys to change, basically AllowAllTrustedApps and AllowDevelopmentWithoutDevLicense. Is it possible for my desktop installer to change these keys, install the Windows App (and everything else) and then change the keys back again?
Uninstalling? If I created a Windows App which only launched my desktop app then there is a possibility that the user uninstalls or deletes the Windows App, meaning my desktop app would be orphaned and lost. Any suggestion on solving this?
According to your description, I think what you need is Desktop Bridge. There is no need to use a Windows App as the Launcher for the desktop app.
You can try with Desktop App Converter, with this you can bring your existing desktop apps written for .NET 4.6.1 or Win32 to the Universal Windows Platform (UWP).
And after converting, you can replace the Assets generated by Desktop App Converter (DAC) automatically to provide custom Tiles/Icons. For more, you can refer to Manually convert your app to UWP using the Desktop Bridge.

Visual Studio Blend: using physical Windows Phone as a target device

Okay, okay - this should be simple, but I just can't figure it out, and Google isn't helping. I just bought a Lumia 635 for developing apps for the Windows store, and I'm using Blend to make my apps in HTML and JS. I've been getting along just fine so far, but it seems that I'm unable to select my WP as a target device.
I've already "unlocked" my windows phone device so that I can use it to develop. I don't believe it's to do with drivers since I would assume Win8 has the drivers inbuild. I'm wondering, is this even possible from within blend? There is a separate program named "Windows Phone App Deployment". Do I have to use this? There seems to be very little concise documentation on this, so I'm assuming it's not possible.
For universal apps, the available deploy targets are based on which project you choose as your startup project. By default the Windows App is the startup project, so it gives you deploy options like Local Machine and Simulator (Windows Tab). Change your startup project to Windows Phone App and you'll see the device option as well as different phone emulators.

Lync: CaptureVideowindow and RenderVideoWindow always null

My application is to incorporate Lync communication (Lync 2013) into our application and
for this i am using windows forms application. I am using the code which i have downloaded from [msdn][1] site. I got the issue with the VideoWindows (CaptureVideoWindow, RenderVideoWindow) of the AVModality's VideoChannel: They are always null, even after successfully calling BeginStart. The connection is established and audio channel is also working fine, but the video is not capturing into my own window.
I am using Lync 2013 in UISuppression mode too.
getting null in VideoChannel.RenderVideoWindow and VideoChannel.CaptureVideowindow.
Finally i solve the issue, now it is working good,
what the problem is , in previous i used
lync basic version: 15.0.4420.1.17
lync SDk: 15.0.4517.1004
so, the video is not displayed in our own window, then i updated Lync basic version to 15.0.4517.1504 and the problem is solved.
so, the basic version of Lync is always greater than the version of Lync SDK we are using in our system.
You can download updated version from here
http://support.microsoft.com/kb/2817621
and see the solution in the following link too
http://social.msdn.microsoft.com/Forums/lync/en-US/07ee768a-d308-4dad-95ea-837c95bcadd2/uisuppression-videowindowowner-raises-generic-com-exception-0x800706f7

Metro app working properly when deployed in windows 8 desktop machine & emulator, but not working properly on surface RT Tablet?

i am developing a C#/XAML windows 8 Metro app,
The application works properly on a Windows 8 machine and emulator, but not on the Surface RT tablet. For example, I have a combobox in one of my screens and I bind the data to the combobox and set a default item by
combobox.selectedItem = "some test";
This data appears in the Windows 8 desktop machine and emulator, but the combobox is showing empty on a Surface RT tablet.
Does the combobox control have any problem on a Windows RT tablet?
I a used AnyCPU Configuration, built in Release mode and tested that package on the device which is generated. For the Surface RT do I need to generate an ARM build?
There's not enough information to answer this problem. I would guess that whatever source you use to populate your combo boxes is not accessible from the devices. If it's some sort of file on your computer, that won't work and you need to send it over as a resource. If it's a service call, you may have an authentication issue.
You might try it from a different desktop machine if one is available. This may or may not confirm my guesses.

Getting MAC Address in Windows 8 app

I am creating a windows 8 app. I have a requirement to save MAC address of my device but I could not find a way to get the MAC Address.
Can anybody help me out??
This thread says that it is not possible from a Windows Store app, by design. The comments offer some alternatives:
List of WIN32 and COM API that can be accessed from Windows Store apps: http://msdn.microsoft.com/en-us/library/windows/desktop/br205757.aspx
Use ASHWID a unique identifier, using this you can make per device logic for apps: http://msdn.microsoft.com/en-us/library/windows/apps/jj553431.aspx
Sample from Microsoft for download that successfully gets information like the system model and system manufacturer: http://code.msdn.microsoft.com/windowsapps/Device-Enumeration-Sample-a6e45169