Blackbiscuits
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 4 articles for 0.060 sec
On 9月8日, 上午12時58分, "felix" <fe...@nospam.com> wrote: > "blackbiscuit" <infozyzh...@gmail.com> wrote in message > > news:75477e8f-5aca-42d3-bde0-e7e0fe945b07@v13g2000pro.googlegroups.com... > > >> Why do you say that you never relase it, as you call > >> "GlobalFree (hData);" ? > > > Because GetGlobalData itself allocate a new memory, hData, and copy > > all content from the OLE clipboard     

Group: comp.os.mswindows.programmer.win32 · Group Profile · Search for Blackbiscuits in comp.os.mswindows.programmer.win32
Author: blackbiscuit
Date: Sep 7, 2008 18:21

"blackbiscuit" <infozyzhang@gmail.com> wrote in message news:75477e8f-5aca-42d3-bde0-e7e0fe945b07@v13g2000pro.googlegroups.com... Why do you say that you never relase it, as you call "GlobalFree (hData);" ? Because GetGlobalData itself allocate a new memory, hData, and copy all content from the OLE clipboard into it. The GlobalFree( hData ) is just used to release that new
Show full article (1.88Kb) · Show article thread
On 9月5日, 上午6時27分, dominique <domini...@domi.com> wrote: > blackbiscuit wrote: > > UINT nFormat = ((DATA*) AfxGetApp ())->GetClipboardFormat (); > > // Allocate some memory related to hData and copy data into from > > OLE clipborad. > > HGLOBAL hData = pDataObject->GetGlobalData (nFormat); > > > if (hData != NULL) { > > DATA* pData= (DATA*) ::GlobalLock (hData); > >     

Group: comp.os.mswindows.programmer.win32 · Group Profile · Search for Blackbiscuits in comp.os.mswindows.programmer.win32
Author: felix
Date: Sep 7, 2008 09:58

blackbiscuit wrote: UINT nFormat = ((DATA*) AfxGetApp ())->GetClipboardFormat (); // Allocate some memory related to hData and copy data into from OLE clipborad. HGLOBAL hData = pDataObject->GetGlobalData (nFormat); if (hData != NULL) { DATA* pData= (DATA*) ::GlobalLock (hData); ...; ::GlobalUnlock (hData); ::GlobalFree
Show full article (0.48Kb) · Show article thread
    

Group: comp.os.mswindows.programmer.win32 · Group Profile · Search for Blackbiscuits in comp.os.mswindows.programmer.win32
Author: blackbiscuit
Date: Sep 7, 2008 07:48

Show full article (0.90Kb) · Show article thread
    

Group: comp.os.mswindows.programmer.win32 · Group Profile · Search for Blackbiscuits in comp.os.mswindows.programmer.win32
Author: dominique
Date: Sep 4, 2008 15:27

Show full article (0.62Kb) · Show article thread