Recent

Author Topic: [Solved] - Search for a file  (Read 7449 times)

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Search for a file
« Reply #15 on: March 21, 2017, 10:36:39 pm »
Why not skip all of that and try to use a SQLite function?
If it fails, then the SQLite DLL can't be found/loaded.
Bad. I hate programs not providing some meaningful error messages.
I, on the other hand, hate when people are jumping to conclusions...

Obviously, if the operation fails due to a missing DLL, the program should handle the error and continue to produce a nice error message.
That approach doesn't care where the DLL is, as long as it's available to be used.
And if it isn't available, it should behave properly and report the error to the user.
more signal - less noise

Rayvenhaus

  • Jr. Member
  • **
  • Posts: 70
Re: Search for a file
« Reply #16 on: March 21, 2017, 11:28:38 pm »
Which is what the second code snippet does perfectly now.

Thanks to everyone for the help.

 

TinyPortal © 2005-2018