Click here to Skip to main content
15,907,395 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: how to open ports using c++ Pin
Mark Salsbery21-Apr-08 21:12
Mark Salsbery21-Apr-08 21:12 
QuestionDid the test succeed Pin
led mike23-Apr-08 9:18
led mike23-Apr-08 9:18 
AnswerRe: how to open ports using c++ Pin
ivanmen23-Apr-08 7:11
ivanmen23-Apr-08 7:11 
QuestionBinaryStream issues with native classes Pin
Xpnctoc21-Apr-08 3:46
Xpnctoc21-Apr-08 3:46 
AnswerRe: BinaryStream issues with native classes Pin
led mike21-Apr-08 5:58
led mike21-Apr-08 5:58 
GeneralRe: BinaryStream issues with native classes Pin
Xpnctoc21-Apr-08 6:22
Xpnctoc21-Apr-08 6:22 
GeneralRe: BinaryStream issues with native classes Pin
led mike21-Apr-08 10:10
led mike21-Apr-08 10:10 
GeneralProblem redistributing C++/CLR App Pin
uusheikh20-Apr-08 22:29
uusheikh20-Apr-08 22:29 
Hi,
i developed a C++/CLR App using Visual Studio 2008. The following are the settings
1. Developed using VS2008, Featurepack was installed but not used(april) (x86 machine Vista SP1)
2. /clr:pure, pure .NET, no native code.
3. Target framework set to 2.0
4. I used cliext STL/CLR in the project.
5. Release mode

When i try to distribute the compiled exe on a Windows Xp SP2 PC, i tried the following and the program would not run.
1. I copied the exe to target machine
2. Installed .NET framework 2.0
3. Ran the app, and an error occurs - "The application failed to start because of configuration incorrect..."

I then tried to install
4. Install VCredist 2008
5. Ran the app, the app launches but a new error occurs
"System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualC.STLCLR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualC.STLCLR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ...."

I then installed .NET framework 3.5 and the app finally runs perfectly.

What i dont understand is,
1. Why do i need the VS2008 redist? I thought this was only for native code. I didnt use any native code in my assembly, in fact i compiled as /clr:pure!
Checking the .exe using dependecywalker shows that the exe only depends on MSCOREE.DLL, no MFC,CRT etc.

2. Why did the compilation proceeded even in VS2008 when i selected the target framework to be 2.0. I used STL/CLR in my app, why didnt the compiler tell me that STL/CLR is part of .NET 3.5 and produce an error during compilation?

3. I was expecting it to run properly with .NET framework 2.0 installed only, just like any other C# code targetted for this framework. I didnt expect vcredist and .net 3.5 required..

Can anyone clarify this? Anyone had this problem, or my approach was incorrect?
Thanks
GeneralRe: Problem redistributing C++/CLR App Pin
Christian Graus22-Apr-08 12:29
protectorChristian Graus22-Apr-08 12:29 
QuestionLinker error 2028 and 2019 Pin
raydona17-Apr-08 2:00
raydona17-Apr-08 2:00 
AnswerRe: Linker error 2028 and 2019 Pin
led mike17-Apr-08 4:34
led mike17-Apr-08 4:34 
GeneralInstall QT4 Pin
phokojoe16-Apr-08 23:51
phokojoe16-Apr-08 23:51 
GeneralCreating an installer Pin
BuckBrown15-Apr-08 8:09
BuckBrown15-Apr-08 8:09 
GeneralRe: Creating an installer Pin
led mike15-Apr-08 10:32
led mike15-Apr-08 10:32 
GeneralRe: Creating an installer Pin
BuckBrown15-Apr-08 12:04
BuckBrown15-Apr-08 12:04 
GeneralRe: Creating an installer Pin
Jonathan [Darka]15-Apr-08 21:17
professionalJonathan [Darka]15-Apr-08 21:17 
QuestionCalling MeasureString from VC++ 2005 Pin
Soumyadipta15-Apr-08 1:07
Soumyadipta15-Apr-08 1:07 
QuestionRe: Calling MeasureString from VC++ 2005 Pin
Christian Graus15-Apr-08 1:29
protectorChristian Graus15-Apr-08 1:29 
GeneralRe: Calling MeasureString from VC++ 2005 Pin
Soumyadipta15-Apr-08 1:50
Soumyadipta15-Apr-08 1:50 
GeneralRe: Calling MeasureString from VC++ 2005 Pin
Christian Graus15-Apr-08 1:56
protectorChristian Graus15-Apr-08 1:56 
GeneralRe: Calling MeasureString from VC++ 2005 Pin
Soumyadipta15-Apr-08 19:15
Soumyadipta15-Apr-08 19:15 
GeneralRe: Calling MeasureString from VC++ 2005 Pin
Christian Graus16-Apr-08 11:17
protectorChristian Graus16-Apr-08 11:17 
QuestionMD5 algorithm for 8-bit microcontrollers? Pin
Benny_Lava15-Apr-08 1:04
Benny_Lava15-Apr-08 1:04 
AnswerRe: MD5 algorithm for 8-bit microcontrollers? PinPopular
Luc Pattyn15-Apr-08 1:11
sitebuilderLuc Pattyn15-Apr-08 1:11 
GeneralNamed Pipes Pin
Reveille014-Apr-08 13:15
Reveille014-Apr-08 13:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.