I've tried to use the error control and, strange, the only thing i have obtained is error = 0......
After this, i tried to only change location of my project and, finally everything was OK!!!!!!!!!!!!!!!!!!!!!
Then i investigated and discovered that the problem was in the path of the location of the project and precisely the presence of "." and/or the "-" character (dot and/or minus to explain).
For example my path was like:
C:\Users\development.word1-word2\Desktop\ProjectName
To conclude i suppose the NativeMethods.LoadLibraryW(path); method doesn't like this strange characters in the path of directory of various dll location and in that case is a LoadLibraryW BUG!!!
In any case thanks for the help.
Bye!!!!
After this, i tried to only change location of my project and, finally everything was OK!!!!!!!!!!!!!!!!!!!!!
Then i investigated and discovered that the problem was in the path of the location of the project and precisely the presence of "." and/or the "-" character (dot and/or minus to explain).
For example my path was like:
C:\Users\development.word1-word2\Desktop\ProjectName
To conclude i suppose the NativeMethods.LoadLibraryW(path); method doesn't like this strange characters in the path of directory of various dll location and in that case is a LoadLibraryW BUG!!!
In any case thanks for the help.
Bye!!!!