Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to dynamically load powerpoint into my MFC application? Pin
Eytukan30-Aug-05 22:31
Eytukan30-Aug-05 22:31 
QuestionEvent watching Pin
Nishad S30-Aug-05 19:55
Nishad S30-Aug-05 19:55 
AnswerRe: Event watching Pin
prasad_som30-Aug-05 20:18
prasad_som30-Aug-05 20:18 
AnswerRe: Event watching Pin
John R. Shaw30-Aug-05 20:19
John R. Shaw30-Aug-05 20:19 
GeneralRe: Event watching Pin
Nishad S30-Aug-05 20:40
Nishad S30-Aug-05 20:40 
AnswerRe: Event watching Pin
ThatsAlok30-Aug-05 20:51
ThatsAlok30-Aug-05 20:51 
GeneralRe: Event watching Pin
Nishad S30-Aug-05 21:43
Nishad S30-Aug-05 21:43 
QuestionIShellFolder::ParseDisplayName and UNICODE Pin
Tcpip200530-Aug-05 19:43
Tcpip200530-Aug-05 19:43 
IShellFolder * psfDesktop = NULL;
SHGetDesktopFolder (&psfDesktop);
LPITEMIDLIST pidl = NULL;

#ifdef _UNICODE
psfDesktop->ParseDisplayName (NULL, 0, strArray.GetAt (0).GetBuffer(0), NULL, &pidl, NULL);
#else
OLECHAR * olePath = NULL;
olePath = (OLECHAR *) calloc (strArray.GetAt (0).GetLength () + 1, sizeof (OLECHAR));
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, (char*)strArray.GetAt (0).GetBuffer(0), -1, olePath, strArray.GetAt (0).GetLength () + 1);
psfDesktop->ParseDisplayName (NULL, 0, olePath, NULL, &pidl, NULL);
free (olePath);
#endif

just be patient to have a look. without unicode configuration,everything is good. But if I compiled with _UNICODE defined, after "ParseDisplayName (NULL, 0, olePath, NULL, &pidl, NULL);" ,pidl is always null.

what's the matter????
Thank u every one here.
AnswerRe: IShellFolder::ParseDisplayName and UNICODE Pin
Jose Lamas Rios31-Aug-05 2:55
Jose Lamas Rios31-Aug-05 2:55 
Questionbugs when type-casting a float to double Pin
chris_mclean30-Aug-05 18:58
chris_mclean30-Aug-05 18:58 
AnswerRe: bugs when type-casting a float to double Pin
Christian Graus30-Aug-05 19:21
protectorChristian Graus30-Aug-05 19:21 
AnswerRe: bugs when type-casting a float to double Pin
John R. Shaw30-Aug-05 20:38
John R. Shaw30-Aug-05 20:38 
GeneralRe: bugs when type-casting a float to double - Resolved Thanks Pin
chris_mclean30-Aug-05 21:08
chris_mclean30-Aug-05 21:08 
GeneralRe: bugs when type-casting a float to double - Resolved Thanks Pin
John R. Shaw31-Aug-05 20:25
John R. Shaw31-Aug-05 20:25 
AnswerRe: bugs when type-casting a float to double Pin
cmk31-Aug-05 5:22
cmk31-Aug-05 5:22 
QuestionWhat can I do if I want the CEdit box only receive the numbers? Pin
pantao55130-Aug-05 18:02
pantao55130-Aug-05 18:02 
AnswerRe: What can I do if I want the CEdit box only receive the numbers? Pin
Barm30-Aug-05 18:14
Barm30-Aug-05 18:14 
GeneralRe: What can I do if I want the CEdit box only receive the numbers? Pin
pantao55130-Aug-05 19:36
pantao55130-Aug-05 19:36 
Questionhow to delete say some 50 bytes from the begning of the file Pin
pradish30-Aug-05 17:32
pradish30-Aug-05 17:32 
AnswerRe: how to delete say some 50 bytes from the begning of the file Pin
Christian Graus30-Aug-05 17:41
protectorChristian Graus30-Aug-05 17:41 
AnswerRe: how to delete say some 50 bytes from the begning of the file Pin
Garth J Lancaster30-Aug-05 18:36
professionalGarth J Lancaster30-Aug-05 18:36 
AnswerRe: how to delete say some 50 bytes from the begning of the file Pin
John R. Shaw30-Aug-05 21:05
John R. Shaw30-Aug-05 21:05 
Questionerror C2227 Pin
Member 216100430-Aug-05 16:59
Member 216100430-Aug-05 16:59 
AnswerRe: error C2227 Pin
Christian Graus30-Aug-05 17:10
protectorChristian Graus30-Aug-05 17:10 
GeneralRe: error C2227 Pin
Member 216100430-Aug-05 17:30
Member 216100430-Aug-05 17:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.