How to debug an XLL add-in file using Visual C++ 6.0

ttt123

Board Regular
Joined
May 31, 2006
Messages
120
Office Version
  1. 365
Platform
  1. Windows
I have taken over maintaining a legacy code base for an Excel product that uses the XLLPlus Excel addin and am having trouble figuring out how to debug into the C++ code that is contained in the xll file.

The VBA project makes calls out to an xll file (compiled C++ similar to a dll file) and I've been trying to figure out how I can hit some breakpoints in the C++ code but haven't had any luck so far.

I created a debug version of the xll file and tried to attach Visual C++ 6.0 to the Excel 2007 process via the 'Build->Start Debug->Attach To Process' menu, but that list is empty. I tried using the suggestions here: The "Attach to process" list is empty in Visual C++ debugger to try to debug by going to the task manager and Debugging the process and also starting up Visual C++ with the Excel process attached. However when I do this, all I get is a 'EXCEL - Microsoft Visual C++ [run] - [Disassembly]' window instead of the process being debugged in my Visual C++ workspace.

Any help would be greatly appreciated.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top