Recently, I was working on a project using the rails framework and the ruby language. I personally don't feel very useful, and there are many problems with the framework and language.
Today, I encountered a very strange problem.CodeWIN32API is used. new calls an external DLL to implement some graphical operations, which can always run normally before. However, an unknown error is generated as soon as it is run, and WIN32API is found. A new error occurs. Here, we can ensure that the dll path, method name, and parameter settings specified by the new method are correct.
Many detection methods are used in the middle ...... 300 words are omitted here
Solution:
It is actually Ruby's win. rb has a problem. Sometimes, even if the dll exists, but it cannot be detected, the solution is to copy the DLL to the % win %/system32 directory, it cannot find the DLL.