Thanks for the solution, but I just try it.
I don´t understand what’s the problem.
Now I solved this changing the target application type in the project propertys, from Console to DLL and changing parts of the code. Now work perfectly.
Thanks for all, your job is great!!