Results 1 to 8 of 8

Thread: [Resolved] Can someone help me with this line of code?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    [Resolved] Can someone help me with this line of code?

    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.
    Last edited by Slyke; Aug 25th, 2008 at 10:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width