How to remove * from path when I print it in console? * is last char of path.
I tried this:
char *temp;
strncpy (temp,token,strlen(token)-1);
but for some reason it makes y program crash....
Type: Posts; User: rain-13
How to remove * from path when I print it in console? * is last char of path.
I tried this:
char *temp;
strncpy (temp,token,strlen(token)-1);
but for some reason it makes y program crash....
I had to add * at the end of path
I found codes from internet and put them together into one code, I didn't even know that I had C with C++. Which part i have C++ and which part is C? Is it...
Ok Here's my code. It compiles fine, but it don't list me files indirectory.
In list.txt I have "C:\users\rain" but my program shows following output.
...
it might be stupid question but where can i find that? i googled but didn't find.
debugger? u meant thatthing tat show error when u compile stuff? There's no errors.
-------------- Build: Debug in testdll ---------------
Compiling: main.cpp
Linking dynamic library:...
It does same thing ass my code, it deletes all files but no folders. I need modification to get it deletefiles and folders, both.... it must clear given directory.
and how do I use...
could u modify my func? I am beginner and I cand to it thatway cuz I just have no idea what to next.
How to modify this function so that It would also delete all directories (including empty ones) in given directory?
void DLL_EXPORT DeleteAllFiles(const LPCSTR folderPath)
{
MessageBoxA(0,...
tnx, just 1 question more how to modify that function so that it uses 1st 2 chars to set text color and then print everything that is after 2nd char?
I have this function in dll. and if I call this DLL so that sometext = "green" then in MessageBox i see "green" but this if sentence doen't work.
How should I modify my if sentence?
// a...