Einzelnen Beitrag anzeigen

Benutzerbild von Remko
Remko

Registriert seit: 10. Okt 2006
Ort: 's-Hertogenbosch, Die Niederlande
222 Beiträge
 
RAD-Studio 2010 Arc
 
#8

Re: Convert sample from platform SDK to Delphi

  Alt 21. Dez 2006, 16:04
So you suggest to drop the whole part and just keep the true part?
m_pwszPrefix := PROP_SHEET_PREFIX_ADMIN; Sorry to keep firing off my questions but I am grabbing the occassion
is this the corret translation?
Code:
   if((m_cfDSObjectNames != pFormatEtc->cfFormat) ||
      !(pFormatEtc->tymed & TYMED_HGLOBAL))
   {
      return DV_E_FORMATETC;
   }
Delphi-Quellcode:
  if (m_cfDSObjectNames <> pFormatEtc.cfFormat) or (pFormatEtc.tymed and TYMED_HGLOBAL = 0) then
  begin
    Result := DV_E_FORMATETC;
    Exit;
  end;
  Mit Zitat antworten Zitat