Here is the piece of code which display all files in the folder.
StringCbCopyN (DirSpec, BUFSIZE, argv[1], length_of_arg+1);
StringCbCatN (DirSpec, BUFSIZE, "\\*", 3); //this is the exact line to display all the files in folderNow i want to select all .b11 extension files in console window.
I tired these below thingd which couldnt work for me.Kindly give me any idea or suggestion to select these extension files.
StringCbCatN (DirSpec, BUFSIZE, "\*.b11", 3);
StringCbCatN (DirSpec, BUFSIZE, "*.b11", 3);
StringCbCatN (DirSpec, BUFSIZE, "\\.b11", 3);
hari, I already told you that to use
TCHARstrings, you should be using the functions in#include <strsafe.h>.