Click here to Skip to main content
15,925,895 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: database connection problem. Pin
Mark Salsbery24-Apr-07 8:34
Mark Salsbery24-Apr-07 8:34 
AnswerRe: database connection problem. Pin
Hamid_RT24-Apr-07 3:12
Hamid_RT24-Apr-07 3:12 
GeneralRe: database connection problem. Pin
david bagaturia24-Apr-07 19:29
david bagaturia24-Apr-07 19:29 
QuestionRe: database connection problem. Pin
David Crow25-Apr-07 2:51
David Crow25-Apr-07 2:51 
GeneralRe: database connection problem. Pin
Hamid_RT25-Apr-07 6:47
Hamid_RT25-Apr-07 6:47 
QuestionCFileDialog Pin
Try23-Apr-07 20:24
Try23-Apr-07 20:24 
QuestionRe: CFileDialog Pin
David Crow24-Apr-07 3:10
David Crow24-Apr-07 3:10 
AnswerRe: CFileDialog Pin
Try24-Apr-07 3:20
Try24-Apr-07 3:20 
Code's here

LPNMLISTVIEW phdr = NULL;
phdr = reinterpret_cast<LPNMLISTVIEW>(lParam);
CListCtrl lc;
lc.Attach(phdr->hdr.hwndFrom);
LPCITEMIDLIST pidl = (LPCITEMIDLIST) lc.GetItemData(phdr->iItem);
SHGetPathFromIDList(pidl, str);

pidl is NULL. Hence i am not able to get File Path.
if i use GetItemText, i will get only file name without extension.
Any Solution. Or any other way to follow..
This works in XP but not in Vista.
QuestionRe: CFileDialog Pin
David Crow24-Apr-07 3:29
David Crow24-Apr-07 3:29 
AnswerRe: CFileDialog Pin
Try24-Apr-07 3:52
Try24-Apr-07 3:52 
GeneralRe: CFileDialog Pin
David Crow24-Apr-07 4:11
David Crow24-Apr-07 4:11 
GeneralRe: CFileDialog Pin
Try24-Apr-07 5:04
Try24-Apr-07 5:04 
QuestionRe: CFileDialog Pin
David Crow24-Apr-07 5:25
David Crow24-Apr-07 5:25 
AnswerRe: CFileDialog Pin
Try24-Apr-07 18:31
Try24-Apr-07 18:31 
QuestionRe: CFileDialog Pin
David Crow25-Apr-07 2:26
David Crow25-Apr-07 2:26 
AnswerRe: CFileDialog Pin
Try25-Apr-07 2:37
Try25-Apr-07 2:37 
AnswerRe: CFileDialog Pin
Try25-Apr-07 2:41
Try25-Apr-07 2:41 
QuestionRe: CFileDialog Pin
David Crow25-Apr-07 2:50
David Crow25-Apr-07 2:50 
AnswerRe: CFileDialog Pin
Try25-Apr-07 3:01
Try25-Apr-07 3:01 
GeneralRe: CFileDialog Pin
David Crow25-Apr-07 3:08
David Crow25-Apr-07 3:08 
GeneralRe: CFileDialog Pin
Try25-Apr-07 3:33
Try25-Apr-07 3:33 
GeneralRe: CFileDialog Pin
David Crow25-Apr-07 3:40
David Crow25-Apr-07 3:40 
AnswerRe: CFileDialog Pin
Try25-Apr-07 3:41
Try25-Apr-07 3:41 
AnswerRe: CFileDialog Pin
Try25-Apr-07 2:45
Try25-Apr-07 2:45 
AnswerRe: CFileDialog Pin
Try25-Apr-07 3:06
Try25-Apr-07 3:06 

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.