Did anyone else encounter this?
I have it set up to target x86 and the dll loads correctly. But all searches return 0 results. I read somewhere else that I need to run as Administrator. That still doesn't help.
Any guidance would be appreciated.
Thanks
C# Sample - getting 0 results for all searches
Re: C# Sample - getting 0 results for all searches
I got the same result with VS2012 update4. I had it working with update 2 so it is related to VS I think.
Everything_SetSearch(textBox1.Text); returns 0
Everything_Query(); returns false
Can't see any exceptions but the Everything_GetNumResults() returns 0
Everything_SetSearch(textBox1.Text); returns 0
Everything_Query(); returns false
Can't see any exceptions but the Everything_GetNumResults() returns 0
Re: C# Sample - getting 0 results for all searches
I got (using VS2010EE) an exception, something about stack being misaligned. What I had to do to get it work was update the API according to the header to look like this:
[DllImport("Everything.dll")]
public static extern bool Everything_Query(bool isUnicode);
Note the added bool isUnicode. I also had to call it with true to make it find anything.
Also Everything needs to be running, so the dll is not providing a complete search engine it seems.
[DllImport("Everything.dll")]
public static extern bool Everything_Query(bool isUnicode);
Note the added bool isUnicode. I also had to call it with true to make it find anything.
Also Everything needs to be running, so the dll is not providing a complete search engine it seems.