Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a MFC project which has ActiveX Labels. When I run my application on computer which does not have MS office on it my application throws error "Debug Assertion Failed" but this same application runs perfect on computer which has MS Office on it.

PS: This project was developed on VS 2006

What I have tried:

1. I googled the problem and found out it has to do something with CLSID of controls.
You can see the following links

[^]

maxscript/axcontrols.ms at master · davestewart/maxscript · GitHub[^]

2. I converted the VS 2006 project to VS 2010 and those ActiveX label are creating problem. When I run the code my application throws "Debug Assertion Failed Error" but it runs application without those ActiveX Labels.
Posted
Updated 12-Feb-20 9:52am
Comments
Richard MacCutchan 12-Feb-20 7:49am    
Look at the code to see what assertion is being thrown. No one here can guess what it is.

1 solution

What I would do is take note of the CLSID that is missing and find where it is referenced in your code. It could be in the .RC file so remember to look there too. Then, remove all traces of that reference and everything that accesses. This could involve replacing some components but if you want to get rid of the dependency this is what you have to do. There is no way around it.
 
Share this answer
 
Comments
Member 14630688 15-Feb-20 7:26am    
So to use ActiveX Labels I need MS Office? That's not fair. There might be some Microsoft tool which will install those necessary dll's or registries

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900