you just include the library and a definition of the function and call it.
should be a .lib for the dll, you add that to the other program and then call the function. I don't know much about python ides.
not a valid win32 applicaiton usually means you didnt have a main program. did you try to make an executable out of your dll project? It should not try to do that.