Click here to Skip to main content
15,068,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have developed our project with the following technologies Visual
C#, Visual C++ and C Language. When we tried to execute our project in
client machine, It works only if the system has Visual C++ installed.
Otherwise it throws an Unhandled exception.The Visual C++ program
which we have developed is dependent on 4 native DLL such as
mscorlib.dll, microsoft visual c.dll, system.dll and data.dll. Visual
C++ project does not load the above mentioned assemblies during run
time.

So we kindly request you to provide some inputs on this to proceed further.
Posted
Comments
   
Do you mean native C++, not C++/CLI?
--SA
givinisha 9-May-12 11:28am
   
The visual C++ code of our application get data from C# and pass it to C program which is unmanaged. Mainly it converts managed and unmanaged data through dll export.

1 solution

If you mean Visual C++ for native platform, the computer of your customer needs just two things: .NET Framework of required version and one more thing: Microsoft Visual C++ Redistributable Package of required version for the instruction-set architecture of the customer's computer. You can download appropriate version from MSDN.

For example:
http://www.microsoft.com/en-us/download/details.aspx?id=5555[^],
http://www.microsoft.com/en-us/download/details.aspx?id=14632[^].

Of course you don't need to install Visual Studio. Usually, you also are not licensed to do so.

See also:
http://en.wikipedia.org/wiki/Instruction_set[^].

[EDIT]

To find the ends, you can use the free Microsoft utility "Dependency Walker" ("Depends.exe"). Please see:
http://www.dependencywalker.com/[^].

—SA
   
v3
Comments
givinisha 9-May-12 11:24am
   
But the previous version of our project runs in client machine without microsoft visual c++ pakage being installed.
Please help us find why it is throwing this exception?
   
I would not be so sure. Anyway, finding the ends is possible. Wait a minute, I'll update the answer...
--SA

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