Wednesday, October 31, 2007

Path Combine Fucction C# and VC++

Path.Combine Function C#

public static string Combine ( string path1, string path2 )

A string containing the combined paths. If one of the specified paths is a zero-length string, this method returns the other path. If path2 contains an absolute path, this method returns path2.
System.IO Namespace

PathCombine Function VC++

LPTSTR PathCombine(  LPTSTR lpszDest  LPCTSTR lpszDir, LPCTSTR lpszFile );

Returns a pointer to a string with the concatenated path if successful, or NULL otherwise.
Header shlwapi.h

 

 

No comments: