473,749 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

running isolated exe with microsoft visual c++ express

I am trying to compile my first windows program using microsoft visuall
c++ express. It is a command line program that must run completely
isolated without any setup. It's not a large or complicated program at
all and I can't imagine why it would be so difficult to deploy such a
simple exe. However, when I try to deploy the program (on non-build
machines) it complains that it is installed or configured incorrectly.
I figured out it's because most windows computers don't have the
following directory (which when renamed causes the same error on my
build machine).

C:\WINDOWS\WinS xS\Policies\x86 _policy.8.0.Mic rosoft.VC80.CRT _1fc8b3b9a1e18e 3b_x-ww_77c2477

I have made sure the mfc is linked statically. and I also made sure
allow isolation is set to yes.

I have also tried setting generate manifest to no and then putting all
of the dlls it complains about in the directory with the exe. When I do
this it gives me the error

The procedure entry point __security_erro r_handler could not be located
in the dynamic link library MSVCR80.dll

This all may have something to do with the clr stuff since I don't even
really understand what that is but I know I had to enable it because I
have the line

#using <System.dll>

I have also tried putting System.dll in the directory with the
executable but this makes no difference. I am kind of frustrated that
it is this difficult to just deploy an isolated command line program
for windows using vc++.

Jan 25 '07 #1
4 3346
Pan
ta***********@g mail.com wrote:
I have also tried setting generate manifest to no and then putting all
of the dlls it complains about in the directory with the exe. When I do
this it gives me the error
It's OT here, have a look at microsoft newsgroups. Also, you may want to
look for "Side-by-side" or "sxs".
--
Marco
Jan 25 '07 #2
EDIT: I have tried using msvcr80.dll from both of these directories

C:\WINDOWS\WinS xS\x86_Microsof t.VC80.CRT_1fc8 b3b9a1e18e3b_8. 0.50727.163_x-ww_681e29fb
C:\WINDOWS\WinS xS\x86_Microsof t.VC80.CRT_1fc8 b3b9a1e18e3b_8. 0.50727.42_x-ww_0de06acd

both cause the same error

On Jan 25, 5:57 pm, talkingpid...@g mail.com wrote:
I am trying to compile my first windows program using microsoft visuall
c++ express. It is a command line program that must run completely
isolated without any setup. It's not a large or complicated program at
all and I can't imagine why it would be so difficult to deploy such a
simple exe. However, when I try to deploy the program (on non-build
machines) it complains that it is installed or configured incorrectly.
I figured out it's because most windows computers don't have the
following directory (which when renamed causes the same error on my
build machine).

C:\WINDOWS\WinS xS\Policies\x86 _policy.8.0.Mic rosoft.VC80.CRT _1fc8b3b9a1e18e 3b_x-ww_77c2477

I have made sure the mfc is linked statically. and I also made sure
allow isolation is set to yes.

I have also tried setting generate manifest to no and then putting all
of the dlls it complains about in the directory with the exe. When I do
this it gives me the error

The procedure entry point __security_erro r_handler could not be located
in the dynamic link library MSVCR80.dll

This all may have something to do with the clr stuff since I don't even
really understand what that is but I know I had to enable it because I
have the line

#using <System.dll>

I have also tried putting System.dll in the directory with the
executable but this makes no difference. I am kind of frustrated that
it is this difficult to just deploy an isolated command line program
for windows using vc++.
Jan 25 '07 #3
ta***********@g mail.com wrote:
[ Top-posted redacted]
[ OT redacted]
1. You're OT here. Try a microsoft newsgroup. See
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

2. Top-posting is discouraged here. See
http://www.parashift.com/c++-faq-lit...t.html#faq-5.4

Jan 25 '07 #4
On 25 Jan 2007 14:57:53 -0800, ta***********@g mail.com wrote:
>I am trying to compile my first windows program using microsoft visuall
c++ express. It is a command line program that must run completely
isolated without any setup. It's not a large or complicated program at
all and I can't imagine why it would be so difficult to deploy such a
simple exe.
This is a problem with your development environment, not with C++. It
is off topic here. You are likely to get better help in a group for
the Microsoft environments. Try microsoft.publi c.dotnet.langua ges.vc
or microsoft.publi c.dotnet.genera l where people are more likely to
know the details of VC++ Express.

rossum

Jan 26 '07 #5

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

Similar topics

99
6226
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a small or mid-sized business. http://groups-beta.google.com/group/microsoft.public.msdn.general/browse_thread/thread/9d7e8f9a00c1c7da/459ca99eb0e7c328?q=%22Proposed+MSDN+subscription+changes%22&rnum=1#459ca99eb0e7c328 Damn! To be that...
3
2278
by: gani | last post by:
hi, how to get the fullpath of created IsolatedStorage directory. thanks. -- gani
2
2157
by: Peter Hogg | last post by:
Hello, I recently downloaded 'Microsoft Visual C# 2005 Express Edition Beta'. It's been brilliant, but I couldn't help wondering what more you get when you buy 'Visual Studio .NET'. There must be some considerable advantages of using it considering its price. So I'm asking you what 'Visual Studio .NET' has, that 'Microsoft Visual C# 2005 Express Edition Beta' doesn't have (apart from the fact 'Visual Studio .NET' allows you to program...
1
1288
by: VB Programmer | last post by:
My development machine has been working perfectly, writing ASP.NET apps, etc... I just went to open a project and it said: "Visual Studio .NET has detected that the specified web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web apps or services." I reran "aspnet_regiis -i " but it still gives me the error. Here's the output:
3
1694
by: Pitaridis Aristotelis | last post by:
Is there any way to create setup for a project made in Microsoft Visual Basic 2005 Express Edition
1
1644
by: Ruth | last post by:
Which edition of Visual Studio do I have? "About" says that I have Visual Studio 8.0.5.0727.42: is this the professional, express, or enterprise edition? I do not believe it is the Team edition. I am trying to use "Attach to Your Form for Debugging" to attach to a process and the "Attach" button is grayed out. Help says that the "Attach to Your Form for Debugging" is not available in the Express Edition. Could this be my issue?...
1
1422
by: Ruth | last post by:
Which edition of Visual Studio do I have? "About" says that I have Visual Studio 8.0.5.0727.42: is this the professional, express, or enterprise edition? I do not believe it is the Team edition. I am trying to use "Attach to Your Form for Debugging" to attach to a process and the "Attach" button is grayed out. Help says that the "Attach to Your Form for Debugging" is not available in the Express Edition. Could this be my issue?...
3
3027
by: Antoine P. | last post by:
Hello there - I've got the following problem: my C# app (an .exe using different dlls) has a different behaviour regarding the way I launch it. The right behaviour when I press F5 from Visual C# Express, and the wrong when I launch the exe file from the bin\debug directory. What's the difference between the 2 calls ? This is the same .exe ! Are dll loaded differently ? The difference is an object which becomes empty for an unknown...
2
1887
by: Pasacco | last post by:
Dear Hopefully, I am posting in appropriate place :) I have problem of "linking" in the Microsoft Visual C++ 9.0 Express Edition tool. In Visual C++ 6.0, I linked "alpha.lib and common.lib" with following way: "Project" menu -"Settings" tab -"Link" tab -add "common.lib" and
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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
9566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
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...
0
8256
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
6800
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
6078
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();...
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.