When my program starts i want it to:
search the Local HDD for any file(s) with a .cpb extention.
once found, gather the name of the file and path.
save the path for later use, and add the file name to a listbox.
I found this msdn page that was quite helpfull:
http://msdn.microsoft.com/en-us/library/aa364418(v=vs.85).aspxGetLastError() returns 2. one of the comments on that web page notes that this is solved by disabling unicode compile:
"It turns out that unicode compile settings were turned on. This caused the function to get the input file path (lpFileName) in the incorrect format."
Thank you for your help, if you need any more info feel free to say so. I always accept constructive critisim
-Tyler
EDIT: My apologies, I just realized that I titled this topic incorectly, thus causing confusion. srry about that!