Code:TCHAR filebuf[256]; _tprintf(_T("Directory = {%s}\n"), filebuf);
I wish to convert this code into a char type or a char(That is not printed onto the screen).
So basically:
Somechar=filebuf;
I've tried every way my brain can think of. I either get compiler errors, or i get weird HEX numbers on the screen (I'd say they are the memory addresses of the filebuf pointer). However, I can't get it working.
I'm trying to find out the directory that the program is in when it's running (App.Path in VB terms), then writing it into a file. This code is the only thing stopping me. The path comes up on the screen. But I can't convert into another data type from here.




.
Reply With Quote