473,624 Members | 2,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Micr osoft_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 2745
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******** ******@TK2MSFTN GP05.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******** ********@TK2MSF TNGP02.phx.gbl. ..
>
"thursday's geek" <no****@nothing .comwrote in message
news:OY******** ******@TK2MSFTN GP05.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*******@nosp am.cox.netwrote in message
news:%2******** *******@TK2MSFT NGP04.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******** ********@TK2MSF TNGP02.phx.gbl. ..
>>
"thursday's geek" <no****@nothing .comwrote in message
news:OY******* *******@TK2MSFT NGP05.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
2721
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 the file oraparam.ini then I launch the runInstaller. There, it's ok. But when I press on the button install, it arrives has 100% in 3 seconds and the files are not copied. The install thus fails lamentably. Thank you to
4
1853
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 customer. Seems to me that if someone installs Redhat 9 with MySQL from the original CD source which is version 3.23.54a and then follows the instructions at the MySQL website on upgrading to a newer version....(4.0.22) then, it should work. I...
5
4940
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 Install From Script. In this method I create the database and its objects in scripts that are run via osql utility on the SQL server machine. For loading any initial data that I need in the database I also run bcp commands.
6
1445
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 little confused when I read FAQ's about .Net, what I would like to know is...do I really need to install it? I am mostly a home computing kind of gal and don't even surf a whole lot. Will I be missing something if I don't have it? I know I...
2
5343
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 works. Now, I am wondering if there is any way to change the directory that the installer installs the files to. I want to be able to put my files in a specified directory (user specified is good, but i don't mind hardcoding the path either) and...
1
1480
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 have .net 2.0 successfully installed, so I don't think that I even need it!! Shouldn't the Update facility recognise that I have 2.0 installed and
12
6295
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 can't create object: 'CDONTS.NewMail' I'm told that is because CDONTS is not installed.
4
1706
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 located at /usr/bin/Python and /usr/bin/Python2.3 . Some of the files are located in /usr/lib64/Python2.3 and in /usr/lib/Python2.3 . Please let me know if you need dir lsitings.
0
5026
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 somewhere in the make script. (It looks like PECL is trying to install Tidy version 1.2, even though the documentation says that's only for PHP4.) Any help would be greatly appreciated. Here's the output from the "pecl install tidy" command in...
0
8179
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8631
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8490
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4184
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.