33 |
#include "wptTypes.h" |
#include "wptTypes.h" |
34 |
|
|
35 |
|
|
36 |
|
extern "C" void _SHFree (void *p); |
37 |
|
|
38 |
/* |
/* |
39 |
* The the text of a menu item. |
* The the text of a menu item. |
40 |
*/ |
*/ |
124 |
il = SHBrowseForFolder (&bi); |
il = SHBrowseForFolder (&bi); |
125 |
if (il) { |
if (il) { |
126 |
SHGetPathFromIDList (il, folder); |
SHGetPathFromIDList (il, folder); |
127 |
|
_SHFree (il); |
128 |
return folder; |
return folder; |
129 |
} |
} |
130 |
return NULL; |
return NULL; |
386 |
|
|
387 |
|
|
388 |
char * |
char * |
389 |
m_strdup( const char *str ) |
m_strdup (const char *str) |
390 |
{ |
{ |
391 |
char * p = new char[strlen( str ) + 1]; |
char * p = new char[strlen (str) + 1]; |
392 |
if( p ) |
if (p) |
393 |
strcpy( p, str ); |
strcpy (p, str); |
394 |
return p; |
return p; |
395 |
} /* m_strdup */ |
} /* m_strdup */ |
396 |
|
|