Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Deploying Visual studio 2005 build MFC application

Posted on 2006-07-11
6
Medium Priority
?
2,504 Views
Last Modified: 2013-11-25
Hi,

I have a MFC windows application orginally programmed in vc++ 6.0.I build the application in Microsoft Visual Studio .NET 2003 and able to deploy in windows xp embedded PC without installing any .NET framework in the target PC.I just compiled the code with 'use MFC in shared dll' option and carried MFC70.dll,msvcp71.dll and msvcr71.dll with the EXE.I m able to run the application without any problem.

When I compiled the same application using 'Microsoft Visual Studio 2005' and deploy in the target windows xp embedded PC (without installing any .NET framework) , I get the following error.

"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

I copied the required dependencies mfc80.dll,mfc80.dll and msvcp80.dll along with the EXE in the target PC.

I have the following queries regarding deploying application build in 'Microsoft Visual Studio 2005'

1.Do i need the framework to be installed in the target PC always?Is it not possible for me to just carry the required dependencies like when I built using 'Microsoft Visual Studio .NET 2003'?

2.Say,If I create an .NET activex and use it in my webpage.When the user browse the page, the activex will get installed in the PC and user can access to that activex.In this case for all the PC using this webpage , do I need to install the .NET framework to access the activex?

Please the experts can explain in detail.

Regards,
Nagarajan S



2.
0
Comment
Question by:pamboo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 2000 total points
ID: 17088062
To run unmanaged C++ application built with VS 2005, install Visual C++ runtime on destination computer:
Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe

If you make installation package using VS 2005 Setup and Deployment project, you can add VC++ runtime as prerequisite. This works both for exe and ActiveX control.

.NET Framework is not required for running unmanaged application.
0
 
LVL 3

Author Comment

by:pamboo
ID: 17088446
Thanks.

But can u explain how the below will work.

If I have a .NET activex that can be called when an user browse a particular page, the activex will get installed in the target PC.In that case, should the target PC must be installed with this runtime?

R the browser will have the pulgins to support .NET activex?

Please give some idea on this.Thanks in advance.
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 17088563
Setup and Deployment project in Visual Studio can create cabinet file for ActiveX control. Add such project to your ActiveX solution. Inside of project, add VC++ Runtime as prerequisite. Having this installation package, you can place ActiveX control on WEB page. When page is opened on client computer, VC++ 8.0 runtime is installed from cabinet file.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 3

Author Comment

by:pamboo
ID: 17096367
If the .NET already installed in that PC,will it try installing again.I ask this to check if the time taken for vc++ 8.0 runtime installation in the target PC to run the activex can be reduced for the PC which is already installed with the framework.

Regards,
Nagarajan S
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 17096963
Both ActiveX control itself and all it's runtime dependencies are installed in the case if they are not found on target computer or computer has old version.
0
 
LVL 3

Author Comment

by:pamboo
ID: 17097103
Thanks a lot.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question