Actually, searching and researching your question prior to posting it is the very first thing listed at the top of the How to ask page in the help center:
Search, and research
...and keep track of what you find. Even if you don't find a useful answer elsewhere on the site, including links to related questions that haven't helped can help others in understanding how your question is different from the rest.
Now, with that said, it's possible to ask a good question without necessarily showing research. However, many questions where the asker didn't do any research end up being questions with a lot of missing details and context that help give answerers a starting point in terms of helping.
When an asker describes in greater detail what they tried, and what they're trying to do, what they've done so far to try and resolve the situation, it gives the rest of us some context. Without context, we're more likely to have to guess at what the asker is trying to do, and we may give answers that aren't very helpful.
I'm not sure if showing research would make this particular question better or not, but in general, if you can provide a bit more context, it's better for everyone.
As for close votes, I'm not convinced this is bandwagon close voting. Many users on this site have put in a great deal of time and energy to help make it a great resource of knowledge for long tail programming problems, so when we see something that looks like it's poorly researched, low quality, lacking in details, or something that otherwise won't be useful to future visitors, we take some form of action.
To keep a question from being closed, the #1 tool at your disposal is editing. If you see people in comments indicate that they're closing a question for a certain reason, even if you disagree with that reason, go ahead and edit the post to try to fix those problems. Many times, as an advocate for a question, you're able to make a better impact on a question via editing than someone who doesn't understand the problem and just simply sees it as unclear or off-topic. Make it so people don't think that, and they won't vote to close. In fact, you'll likely pick up reopen voters by bumping the newly minted question back to the top of the main page.