Relative Content

Tag Archive for c#uwp

Calling an asynchronous method causes a debug

I ran into a problem while developing a program on UWP. I need to open a dialog box for the user to select a save folder. When calling the method StorageFile file = await openPicker.PickSingleFileAsync(); the program calls the debugger.

Integrating C DLL into UWP platform with DLLImport

I’m attempting to integrate a Chainway R3 barcode scanner device into a Universal Windows Platform (UWP) project. The device manufacturer provided a C-coded DLL, but I’m struggling to successfully run its functions into my UWP project. Prior to working on the UWP platform, I tested the DLL in a C# console project and encountered no issues, which gave me confidence in my ability to adapt it to the UWP project. However, my efforts have been met with partial success, as the DLL’s OpenUSB function returns an error code of 6, which corresponds to “ERR_OPEN_USB_FAILURE” according to the documentation.