I am facing an issue while trying to open an image file from a Silverlight app in Windows 10 using WScript.Shell. The code is as follows. try { dynamic shell = AutomationFactory.CreateObject("WScript.Shell"); shell.Run(@"C:\temp\X.jpg"); } catch (Exception ex) { MessageBox.Show(ex.StackTrace); } This piece of code works perfectly fine when the default [...] read more
I developed a windows service to fax files using VB.NET. It is working for the file formats .bmp,.jpeg. But it is not working for the file type .PDF. I am using FaxComLib (COM .dll) to send fax. I am getting following error when the service tries to fax .PDF file. [...] read more
I try to use AssocQueryString to get association information, myapp.exe is 32-bit executable file. Here's my code. WCHAR commandline[_MAX_PATH]; DWORD size = _MAX_PATH; HRESULT h = AssocQueryStringW(ASSOCF_OPEN_BYEXENAME, ASSOCSTR_COMMAND, execName, 0, commandline, &size); if (SUCCEEDED(h)) { ... } I find that if "execName" is a 32-bit application, this api works perfect. [...] read more