I recently updated my new computer and installed the win7 x64 flagship edition. I used to use the x86 system. I haven't encountered any problems after I switched to x64. Today, I want to debug the old one.CodeIt can run normally in the original win7 x86, but it is started todayProgramAlways reported that the application cannot start normally (0xc000007b ). Click "OK" to close the application .", I thought it was a simple running problem, so I re-compiled it again (in Win32 mode). The results were still problematic, and there was no gain in searching online for a long time, the most common error is that some hard disk games encounter this error at startup, but it is different from mine. After an afternoon of hard work, I couldn't do it. I had to install a virtual machine on the curve to save the country, run win7 x86, and then debug the code.
After the virtual machine system is installed, I tried to run the program, and the result showed that libmysql. dll could not be found. I remembered that MySQL was not installed. when MySQL was installed, the program ran smoothly. At this moment, I suddenly thought of something, because Windows 7x64 is installed on the machine, so I try to find the x64 version of the installed programs, and MySQL is no exception, is there a problem with this dll version? I quickly copied the libmysql. dll of X86 MySQL installed in the virtual machine to my program directory, run, bingo! Everything is normal!
lack of experience in development with x64 Systems, due to temporary negligence, I forgot the possibility of errors. The Win32 program can run in win64, but it must have a corresponding version of DLL. Otherwise, it is "When!" The sound of a sound echoed in my mind for an afternoon ......