473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Install problem with C++ and C# together

I am using the Visual Studio 2005 installer on our project, and we just
started moving from C++ to C#. So, most of the code is still C++, but there
are a few projects that are C#. The C# projects are not signed (I was told
that there were issues with signed code calling unsigned code and vice
versa, plus, I don't quite understand all of that yet.)

I am getting warnings when I build the install, and I've searched and it
appears that I can ignore them. I'm including them here, just in case that
is not true. I added Microsoft_VC80_ATL_x86.msm,
Microsoft_VC80_CRT_x86.msm, and Microsoft_VC80_MFC_x86.msm, and get warnings
about "Two or more objects have the same target location
('[payload_ul]\8.0.50727.762.policy')". I also have the ATL, CRT, and MFC
versions of policy_8_0_Microsoft_VC80_nnn_x86.msm which gives warnings about
"Two or more objects have the same target location
('[policydir]\8.0.50727.762.policy')"

Even with those warnings, I can get an install that appears to work. I am
using a virtual machine, and it was installing and mostly running yesterday
morning, and then it quit working. (A co-worker was using a real machine,
and was always getting the same errors.)

Starting mid-day yesterday, as soon as I run my app and get to a part that
would be using a C# project, I get the following.
Runtime Error!
Program: C:\<company name>\<project name>.exe
This application has requested the Runtime to terminate in an unusual way.
Please contact the application's support team for more information.

The exception unknown software exception (0x40000015) occurred in the
application at location 0x781346b4.
Click on OK to terminate the program

We are installing both the C++ and C# dlls in the same directory. I don't
know if I'm doing something wrong that is simple and obvious (to someone who
knows), or if I'm just totally on the wrong path. We also have
Installshield 5.0 (there are valid reasons why we don't have the current
version, but I don't recall them), and I'm going to go try messing with that
and see if I can get any further. I'm walking pretty blind, and if anyone
can provide some light, I'd sure appreciate it.
-karen
Mar 28 '07 #1
4 2730
Oh, and I just tried it with InstallShield 5.0 and get the same error. So
it's definitely something I'm doing worng with integrating C++ and C#
together. Of course, I already knew that.
-karen
Mar 28 '07 #2

"thursday's geek" <no****@nothing.comwrote in message
news:OY**************@TK2MSFTNGP05.phx.gbl...
>I am using the Visual Studio 2005 installer on our project, and we just
started moving from C++ to C#. So, most of the code is still C++, but
there are a few projects that are C#. The C# projects are not signed (I
was told that there were issues with signed code calling unsigned code and
vice versa, plus, I don't quite understand all of that yet.)
<snip>

Ok, I went ahead and signed them, and the "Runtime error" went away. But...
the parts of the program that use C# aren't acting correctly. It's like
they are there but not there. That could even be a programming error,
although it works fine in debug and release mode, just not in an installed
release on a clean machine. (I need to try it on a non-virtual machine.)
The .NET 2.0 is there, the interop stuff is registered.

Is this the right place to be asking questions about making c++ and c#
install and work together?
-karen
Mar 28 '07 #3
You proably need to get more data, because "aren't acting correctly" doesn't
really help anyone diagnose this. If they're crashing there'd be an
exception. Adding trace code to apps is ofte a good idea so you can see
ehat's going on. Either way, you'll need to be more specific about what
failures are occurring.

There's no reason why C++ and C# apps can't be in the same app folder.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
"thursday's geek" <no****@nothing.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>
"thursday's geek" <no****@nothing.comwrote in message
news:OY**************@TK2MSFTNGP05.phx.gbl...
>>I am using the Visual Studio 2005 installer on our project, and we just
started moving from C++ to C#. So, most of the code is still C++, but
there are a few projects that are C#. The C# projects are not signed (I
was told that there were issues with signed code calling unsigned code and
vice versa, plus, I don't quite understand all of that yet.)
<snip>

Ok, I went ahead and signed them, and the "Runtime error" went away.
But... the parts of the program that use C# aren't acting correctly. It's
like they are there but not there. That could even be a programming
error, although it works fine in debug and release mode, just not in an
installed release on a clean machine. (I need to try it on a non-virtual
machine.) The .NET 2.0 is there, the interop stuff is registered.

Is this the right place to be asking questions about making c++ and c#
install and work together?
-karen

Mar 31 '07 #4
I started a new installer project, and put it together the way the first one
was, and now it seems to work. The C# code is not signed (it won't go in
the GAC anyay), but we'll continue to appraise if we need to sign it. All I
can guess is that some of the thrashing we did in creating the install
managed to damage the install project, and starting over eliminated that
thrash damage.

As for the "aren't acting correctly" quote, you're right, that's not much
information. I was trying to say that the C# parts of the code didn't
appear to be there, but nothing was crashing. So, if my C++ code called
some C# code that drew a section of my window, that C# part of the window
was not drawn, but the C++ code still worked without errors. But, with the
new install project, it now all seems to work. If it stops working again,
or we see something similar, I'll check into adding the trace code.

-karen

"Phil Wilson" <pd*******@nospam.cox.netwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
You proably need to get more data, because "aren't acting correctly"
doesn't really help anyone diagnose this. If they're crashing there'd be
an exception. Adding trace code to apps is ofte a good idea so you can see
ehat's going on. Either way, you'll need to be more specific about what
failures are occurring.

There's no reason why C++ and C# apps can't be in the same app folder.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
"thursday's geek" <no****@nothing.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>
"thursday's geek" <no****@nothing.comwrote in message
news:OY**************@TK2MSFTNGP05.phx.gbl...
>>>I am using the Visual Studio 2005 installer on our project, and we just
started moving from C++ to C#. So, most of the code is still C++, but
there are a few projects that are C#. The C# projects are not signed (I
was told that there were issues with signed code calling unsigned code
and vice versa, plus, I don't quite understand all of that yet.)
<snip>

Ok, I went ahead and signed them, and the "Runtime error" went away.
But... the parts of the program that use C# aren't acting correctly.
It's like they are there but not there. That could even be a programming
error, although it works fine in debug and release mode, just not in an
installed release on a clean machine. (I need to try it on a non-virtual
machine.) The .NET 2.0 is there, the interop stuff is registered.

Is this the right place to be asking questions about making c++ and c#
install and work together?
-karen


Apr 2 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christophe Morrone | last post by:
Hello all, In advance, excuse my English. I have a small problem of installation with Oracle 9i (Mandrake 9.1) At the beginning I have got a problem of jre! I give the way of the JRE of sun in...
4
by: KJemison | last post by:
Well.... just wanted to know if the people at the MySQL.org site ever look at the posts in this group. If they do, they can possibly us a little constructive criticism from a slightly irritated...
5
by: great_googley_moogley | last post by:
Greetings, I am in the process of installing a SQL database at a customer location. I have determined that there are 3 ways to do this, and I wanted to know which is the best of the 3. 1...
6
by: PoohsHunnyBee | last post by:
Hi there, I have some basic questions; I am not a web developer beyond the scope of the simple stuff I can do with Front Page so I am not super informed with this realm of terminology, I am a...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
1
by: ncoathup.news | last post by:
Hi I am continually reminded that I have the .net 1.1 Service Pack 1 downloaded and available to install by Windows Update. However, it continually fails to install when selected. I already...
12
by: Jeff | last post by:
I have a dedicated windows server on BlueGenesis. I'd like to send an email using ASP, but I'm getting this error message: Microsoft VBScript runtime error '800a01ad' ActiveX component...
4
by: Christopher Taylor | last post by:
Hello all, Being relatively new to linux I'm a little confused about what options I need to use to build python from source. Currently, I have python installed as part of the inital RHEL4 load...
0
by: kempshall | last post by:
Can somebody please tell me how to install the Tidy module for PHP 5 on a Mac? I tried what the php.net website said, which is running the command "pecl install tidy" but the installation failed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.