The most likely explanations for that error are:
- The file you are attempting to load is not an executable file.
CreateProcess
requires you to provide an executable file. If you wish to be able to open any file with its associated application then you needShellExecute
rather thanCreateProcess
. - There is a problem loading one of the dependencies of the executable, i.e. the DLLs that are linked to the executable. The most common reason for that is a mismatch between a 32 bit executable and a 64 bit DLL, or vice versa. To investigate, use Dependency Walker’s profile mode to check exactly what is going wrong.
Reading down to the bottom of the code, I can see that the problem is number 1.
Related Posts:
- What exactly are DLL files, and how do they work?
- The application was unable to start correctly (0xc000007b)
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- Python Setup Disabling Path Length Limit Pros and Cons?
- Difference between xcopy and robocopy
- The filename, directory name, or volume label syntax is incorrect inside batch
- Bat file to run a .exe at the command prompt
- How can I open Java .class files in a human-readable way?
- Opening a remote machine’s Windows C drive
- Taskkill /f doesn’t kill a process
- Bluescreen on windows 10 after using android emulator
- XCOPY: Overwrite all without prompt in BATCH
- What exactly is the scope of Access Violation ‘0xc0000005’?
- What is the source of the data for the ProgramFiles, ProgramW6432Dir, ProgramFilesDir (x86), CommonProgramFiles environment variables?
- How to install and run the Nmap program through Cygwin in Windows?
- How to compile C program on command line using MinGW?
- All links in my site start with localhost?
- WordPress database setup Windows 2016 IIS
- How do you find what process is holding a file open in Windows?
- How do I tell Git for Windows where to find my private RSA key?
- How to send ctrl+alt+del using Remote Desktop?
- What’s the command-line utility in Windows to do a reverse DNS look-up?
- Useful Command-line Commands on Windows
- How do you add a Windows environment variable without rebooting?
- hosts file ignored, how to troubleshoot?
- How to refresh hosts file without rebooting
- How to sleep in a batch file?
- Resolve host name from IP address
- Run a .bat file in a scheduled task without a window
- Command line to list users in a Windows Active Directory group?
- What is Active Directory Domain Services and how does it work?
- Is there a global, persistent CMD history?
- How do I diff two text files in Windows Powershell?
- In Windows, using the command line, how do you check if a remote port is open?
- Does Windows have a built-in ZIP command for the command line?
- Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?
- How does CTRL-ALT-DEL to log in make Windows more secure?
- How to check if a port is blocked on a Windows machine?
- How do I force sync the time on Windows Workstation or Server?
- How do I create a symbolic link in Windows?
- Best practice: Should I always install a fresh OS for new employees?
- How can I tell what version of IIS is installed?
- Where can I find data stored by a Windows Service running as “Local System Account”?
- How can I connect to a Windows server using a Command Line Interface? (CLI)
- Windows server last reboot time
- Windows Active Directory naming best practices?
- Why hasn’t rsync caught on in the Windows world? [closed]
- Boot and Install Windows from a USB thumb drive
- How to fix PuTTY showing garbled characters? [closed]
- How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off [duplicate]
- How do you free up a port being held open by dead process?
- What is the Windows equivalent of Unix “whoami” command?
- How to configure a Windows machine to allow file sharing with a DNS alias
- Alternatives to Splunk?
- Can’t start Eclipse – Java was started but returned exit code=13
- ow can I find where Python is installed on Windows?
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- undefined reference to WinMain@16 (codeblocks)
- How can i convert my Delphi.NET project to Delphi Prism?
- Difference between ‘strcpy’ and ‘strcpy_s’?
- what is a “dump file” in windows task manager?
- How do I run Redis on Windows?
- Using putty to scp from windows to Linux
- how to open an mp3 file with c
- Command Prompt “Net View System Error 6118”
- Batch script loop
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- What is the default password for Postgres
- Visual C++ executable and missing MSVCR100d.dll
- Run C++ in command prompt – Windows
- Extracting .jar file with command line
- How to force `findstr` to ignore `Cannot open` returns
- Npm Please try using this command again as root/administrator
- Choosing a Windows automation scripting language. AutoIt vs Autohotkey
- What is Windows Fabric and how to host services in it?
- starting R: Error: ‘\U’ used without hex digits in character string starting “”C:\U”
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- Curl not recognized as an internal or external command, operable program or batch file
- What is the jasperrepots-fonts jar for and how to use it?
- Redirecting Output from within Batch file
- How to completely uninstall Android Studio from windows(v10)?
- what is shortcut command to kill process in windows command?
- How do you clear the console screen in C?
- What is %0|%0 and how does it work?
- LPCSTR, LPCTSTR and LPTSTR
- SSH to Vagrant box in Windows?
- Docker hv-sock proxy (vsudd) is not reachable windows
- java ‘jar’ is not recognized as an internal or external command
- In which cases does program exit with 0x40010004 code?
- Sublime Text from Command Line
- What is the difference between \ and \\ in file path
- A _disk_id.pod file appears on a windows flash drive
- Uncaught Error: Call to undefined function mysql_connect() – WordPress installation
- One blog inside another
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- Custom permalink gives 404 error only in some pages
- What port should I open to allow remote desktop?
- How to determine the hostname from an IP address in a Windows network?
- ‘wp’ is not recognized as an internal or external command, operable program or batch file