Autor Beitrag
Tony_69
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Fr 06.08.10 21:53 
Hi,
I have problem with getting item Listview's text from another application. I tried a lot of examples and I was trying write something on my own ,but they didn't work.I redo a source from this forum from thread about WMP playlist ,but it isn't working ,too.I please you about help,something working examples or something informations. Greetings !

PS. My isn't working source :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var
  lvi: TLVITEM;
  text : pchar;
begin
  lvi.iItem := 0;
  lvi.iSubItem := 1;
  lvi.mask := LVIF_TEXT;
  lvi.pszText := @text;
  lvi.cchTextMax := 1000;

  SendMessage({Handle}, LVM_GETITEM, 0, Integer(@lvi));
  ShowMessage(text);



Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Sa 07.08.2010 um 11:40
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 06.08.10 22:41 
This wont work. Because the text is a pointer and the pointer is not valid in another process. Take a look hat my code: www.michael-puff.de/...ccessComCtrl32.shtml