I'm using visual studio c++ 2012 on windows 7 and directx 10. I copied the code from the tutorial in the directx sdk documention which produces a flat triangle on screen. I can successfully compile the code and see the result but when I sent the .exe and necessary .fx file to other computer, the user on the other side encountered a problem that the window appears and disappeared quickly after clicking the .exe. I've installed c++ redistributed 2012 x86 update 3 on that computer but it seems that's not where problem is.
Here's the shader code: