Вниз
Скачать: CL | DM;

проблема с OpenStream   Найти похожие ветки 

 
brahman   (2010-02-05 14:48) [0]

Пытаюсь сделать drag"n"drop вложений из почтового клинета. при попытке создания потока из IStorage дает AV на 775F5B6E accessing 00000010
Format.cfFormat := CF_FILEDESCRIPTOR;
 Format.ptd := nil;
 Format.dwAspect := 1;
 Format.lindex := -1;
 Format.tymed := TYMED_HGLOBAL;

 if (dataObj.GetData(Format, Medium) = S_OK) then
   begin
     pfgd := PFileGroupDescriptor(GlobalLock(Medium.hGlobal));
      // Iterate each of the files
     for dwCount := 0 to pfgd.cItems - 1 do
       begin
         // Set up for getting the file data
         Format.cfFormat := CF_FILECONTENTS;
         Format.ptd := nil;
         Format.dwAspect := 1;
         Format.lindex := dwCount;
         Format.tymed := TYMED_ISTORAGE or TYMED_ISTREAM;
         if (dataObj.GetData(Format, stgmitem) = S_OK) then
           begin
             pstg := IStorage(stgmitem.stg);
             if pstg.OpenStream("__substg1.0_10090102", nil, STGM_READ or STGM_SHARE_EXCLUSIVE, 0, pstm) = S_OK then
               ...

Укажите, плиз, че не так у меня


 
Сергей М. ©   (2010-02-05 15:29) [1]

одно из двух - либо в pstg nil или мусор либо адрес pstm инвалиден



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.004 c
2-1352445326
NapalmRain
2012-11-09 11:15
2013.06.09
MultiByteToWideChar или другой способ перевести UTF16 LE в ANSI


2-1352129772
Jimmy
2012-11-05 19:36
2013.06.09
Как быстро сравнить две строки?


3-1290119666
TheEd
2010-11-19 01:34
2013.06.09
Есть ли возможность автоматически грузить описания полей?


15-1359636718
Студент
2013-01-31 16:51
2013.06.09
Порекомендуйте книжки.


15-1359642013
Лиля
2013-01-31 18:20
2013.06.09
как связать delphi,sql и модем ST10




   Наверх