Click here to Skip to main content
15,918,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to get installed font list of Windows XP?? Pin
Hamid_RT6-Jan-09 7:57
Hamid_RT6-Jan-09 7:57 
GeneralRe: how to get installed font list of Windows XP?? Pin
vijay.victory5-Jan-09 23:58
vijay.victory5-Jan-09 23:58 
GeneralRe: how to get installed font list of Windows XP?? Pin
Naveen6-Jan-09 1:14
Naveen6-Jan-09 1:14 
AnswerRe: how to get installed font list of Windows XP?? Pin
Hamid_RT5-Jan-09 20:55
Hamid_RT5-Jan-09 20:55 
QuestionClipBoard Hook Pin
NewVC++5-Jan-09 20:00
NewVC++5-Jan-09 20:00 
AnswerRe: ClipBoard Hook Pin
Hamid_RT5-Jan-09 20:16
Hamid_RT5-Jan-09 20:16 
Questioncompatible with biometrics Pin
hrishiS5-Jan-09 19:07
hrishiS5-Jan-09 19:07 
QuestionUnhandled exception at 0x0052aba7 Pin
MsmVc5-Jan-09 18:53
MsmVc5-Jan-09 18:53 
Hi All

my application throw exception.
Unhandled exception at 0x0052aba7 in application.exe;0x0000005;Access violation reading location 0x0000000.


I am useing clipboard.Code is here
OpenClipboard(NULL);
 EmptyClipboard();
 CloseClipboard();
  

CString szText1;
LPDATAOBJECT pDO;
TCHAR szPath122[MAX_PATH];

// open the clipboard and ask for a CF_HDROP, if any 0x0052abc0
HRESULT hr = OleGetClipboard(&pDO);

FORMATETC fmt = {CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
STGMEDIUM stgm;
hr = pDO->GetData(&fmt, &stgm);

if(S_OK == hr)
{
   UINT nFiles = DragQueryFile((HDROP)stgm.hGlobal, -1, NULL, 0);
 i = 0;
  
for( i = 0; i < nFiles; i++)
   {
	   ij=1;
	
	   
      DragQueryFile((HDROP)stgm.hGlobal, i, szPath122, MAX_PATH);
	 
	
	
     szText1  +=   szPath122;   
  

	szText1   +=   "\r\n";
  
  
 }


   ReleaseStgMedium(&stgm); // will call GlobalFree
}

pDO->Release();

Exception throw in this line
<code>hr = pDO->GetData(&fmt, &stgm);</code>

How can i slove this exception.Plz help me
AnswerRe: Unhandled exception at 0x0052aba7 Pin
Maxwell Chen5-Jan-09 19:04
Maxwell Chen5-Jan-09 19:04 
QuestionMake a mfc Application as dll Pin
VCsamir5-Jan-09 18:21
VCsamir5-Jan-09 18:21 
AnswerRe: Make a mfc Application as dll Pin
Randor 6-Jan-09 19:23
professional Randor 6-Jan-09 19:23 
GeneralRe: Make a mfc Application as dll Pin
VCsamir9-Jan-09 20:57
VCsamir9-Jan-09 20:57 
GeneralRe: Make a mfc Application as dll Pin
Randor 10-Jan-09 4:12
professional Randor 10-Jan-09 4:12 
GeneralRe: Make a mfc Application as dll Pin
VCsamir13-Jan-09 19:20
VCsamir13-Jan-09 19:20 
GeneralRe: Make a mfc Application as dll Pin
VCsamir15-Jan-09 17:27
VCsamir15-Jan-09 17:27 
QuestionCreating DLL in VC++ to use in CVI (C) Pin
Kiran Satish5-Jan-09 17:39
Kiran Satish5-Jan-09 17:39 
AnswerRe: Creating DLL in VC++ to use in CVI (C) Pin
Garth J Lancaster5-Jan-09 22:52
professionalGarth J Lancaster5-Jan-09 22:52 
QuestionChanging EXE Bitmap.. Pin
CuteAshaVC++5-Jan-09 16:26
CuteAshaVC++5-Jan-09 16:26 
AnswerRe: Changing EXE Bitmap.. Pin
Sarath C5-Jan-09 20:06
Sarath C5-Jan-09 20:06 
QuestionRe: Changing EXE Bitmap.. Pin
CuteAshaVC++5-Jan-09 20:59
CuteAshaVC++5-Jan-09 20:59 
AnswerRe: Changing EXE Bitmap.. Pin
Code-o-mat5-Jan-09 21:53
Code-o-mat5-Jan-09 21:53 
AnswerRe: Changing EXE Bitmap.. Pin
enhzflep6-Jan-09 2:04
enhzflep6-Jan-09 2:04 
Questionhow to get buffer in standard C language Pin
PhuLove5-Jan-09 15:51
PhuLove5-Jan-09 15:51 
GeneralRe: how to get buffer in standard C language Pin
Luc Pattyn5-Jan-09 16:06
sitebuilderLuc Pattyn5-Jan-09 16:06 
GeneralRe: how to get buffer in standard C language Pin
PhuLove7-Jan-09 1:58
PhuLove7-Jan-09 1:58 

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.