how to debug in OL2010?

B

Beiley

I can't figure out how to debug my add-in under OL2010? I'm using
VS2005 with a C++ COM/ATL add-in. Any breakpoints I set never break,
although the add-in is loaded/running as determined by using
MessageBox(). I suspect it has something to do with how I'm launching
Outlook. Under OL2007, which I can debug in fine, I would start:

C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE

from within my project's debug properties. For OL2010 I've had to set
it to:

Command: "C:\Program Files\Common Files\microsoft shared
\Virtualization Handler\CVH.EXE"
Arguments: "Microsoft Outlook 2010 (Beta) 2014006204090000"

It runs, but my breakpoints don't work. Am I doing something wrong?

Thanks,
Mark
 
S

sgrosch1

You should be calling into C:\program files\microsof
office\office14\outlook.exe

If you're using a 32-bit Outlook it'll be down the "program file
(x86)" path instead
 
B

Beiley

You should be calling into C:\program files\microsoft
office\office14\outlook.exe

If you're using a 32-bit Outlook it'll be down the "program files
(x86)" path instead.

Thanks sgrosch1. I thought that initially too, but there are no .exe
files in that folder on my system. I'm running Vista 32 bit, and
Outlook 32 bit. There are only 6 files in the folder C:\Program Files
\Microsoft Office\Office14 :

Custom.propdesc
NPSPWRAP.DLL
ONFILTER.DLL
OSPP.HTM
OSPP.VBS
SLERROR.XML

and a folder called:
OneNote

I've searched my whole system for Outlook.exe, but can't find one,
except my old OL2007 one, in the Office12 folder. Outlook 2010 does
start okay, so I'm stumped as to where it is running from... Any
ideas?

Thanks,
Mark
 
B

Beiley

Thanks sgrosch1.  I thought that initially too, but there are no .exe
files in that folder on my system.  I'm running Vista 32 bit, and
Outlook 32 bit.  There are only 6 files in the folder C:\Program Files
\Microsoft Office\Office14 :

Custom.propdesc
NPSPWRAP.DLL
ONFILTER.DLL
OSPP.HTM
OSPP.VBS
SLERROR.XML

and a folder called:
OneNote

I've searched my whole system for Outlook.exe, but can't find one,
except my old OL2007 one, in the Office12 folder.  Outlook 2010 does
start okay, so I'm stumped as to where it is running from...  Any
ideas?

Thanks,
Mark

I figured out the problem. I had installed the "Home and Student"
version of Office 2010 Beta, which uses this new "Click-to-Run"
feature. Apparently, the Outlook.exe is downloaded, and run from a
new mapped Q: drive, which you have no permissions to view. I
uninstalled the Home/Student version and instead installed the
Professional Office 2010 Beta. Now I have the regular EXE's in the
Office14 folder, so I can debug normally.

Mark
Beiley Software - http://www.beiley.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top