Print Page | Close Window

Debugging MFC application

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2870
Printed Date: 29 Apr 24 at 4:30AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Debugging MFC application
Posted By: QED Solutions
Subject: Debugging MFC application
Date Posted: 16 Apr 14 at 9:40PM
I've got an MFC application that is mostly working. However, I am unable to use the debugger.

Win7
Vs2010
Debenu 10.14

Here's essentially what I am doing:

DebenuPDFLibraryDLL1014 qPdf(target);
qPdf.UnlockKey("My Key");
if (qPdf.Unlocked())
{
//do something
}
else
{
//do something else
}

I can step through the object initialization and all seems to go well. When I try to step over the if statement instead of going to the next statement execution resumes and neither side of the if statement is stepped into. 

Any thoughts would be greatly appreciated.




Replies:
Posted By: erico
Date Posted: 07 Oct 14 at 10:21PM
Just came across this. Not sure what the issue is, but doing this will probably allow you to debug:

bool bresult;

...
bResult = qPdf.Unlocked();

if (bResult)
{
   // do it true
}
else
{
  // do otherwise
}


Posted By: AndrewC
Date Posted: 08 Oct 14 at 11:14AM

QED,

You won't be able to debug the Debenu Library directly in the VS 2010 DLL version.  You will be able to step into some of the wrapper functions and see the return values from the Debenu functions.

Make sure your project is set to Debug and not Release mode in your project settings.  Are you using C# or C++ ? It sounds like a project setting or options problem. I am able to debug both C++ and C# without too many issues.

Andrew.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk