C/C++ compilation and run time headaches

Sep 29, 2004
18,656
68
91
"code" in parenthesis intentionally.

The good news is that there is a project file (.vcproj) so loading it into Visual Studio .NET (2002). it compiles and links with only one easily fixable snag.

I am having two problems. The first I think is a post processing issue since the program actually compiles and links properly. In a window called Task List, I get this error:
Status error PRJ0019: A tool returned an error code: "Registering ActiveX Control..."

So, what do I do with that?


The second problem is a debug assertion if I actually try running the executable. I'm just starting to dig on that, so I have no questions (yet). But if you have advice on how to track down "Debug Assertion Failed!" dialogs, please let me know.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
On the first problem, that looks like an issue with the configuration of Visual Studio, not the project per se.

Lots of Google hits on that code, by the way. So you're not the only one :). Looks like one issue is when you're on Vista and not running VS as administrator. I'm sure there are other causes as well.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
I haven't used VS.NET 200, but in later versions you have options to register your compiled assemblies with COM Interop from the project build settings menu.

Otherwise you need to use regasm.exe to register the assemblies for COM access with a script or manually which sounds like someone might be trying to do. regasm makes changes to the registry so it would need permissions similar to an installer which seems to be what Markbnj was leading at. On Vista I know VS.NET 2005 needs to be run with Admin rights, but not VS.NET 2008.