CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    3,774

    Re: TCHAR correct usage

    The problem though of passing TCHAR* as a parameter of the function is that the function does not know how much memory has been allocated so its possible to get the old problem of buffer over-run!...
  2. Replies
    7
    Views
    3,774

    Re: TCHAR correct usage

    Incidentially, as you seem to want to return a string - why are you just returing a character (TCHAR&)????? Shouldn't you be returning a pointer to a TCHAR array (TCHAR*) - and in your code use...
  3. Replies
    7
    Views
    3,774

    Re: TCHAR correct usage

    You seem to be returning a reference to a TCHAR (which is either a char or a WCHAR depending on UNICODE definition). This reference is either to the first char of szReturnedDir if everything OK or...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured