I have a VC++ / .NET 2.0 solution built using VS 2005 SP1 under XP.
Everything has been working well there over the past year. I have recently
starting porting the app to Windows Vista (since it currently will not
execute properly there).
I installed VS 2005 SP1 and the hot fix SP for Vista on my Windows Vista
system and have rebuilt the entire solution there with everything working
well. This solution also builds a setup package that includes all
dependecies -- i.e. MS VC80 vcrt merge modules, etc.). The setup package
works perfectly and the software now runs under Vista. Now, when I go back
and install the app under Windows XP I get the following error when I start
up the exe after installation:
The procedure entry point _except_handler 4_common could not be located in
the dynamic link library msvcrt.dll
This is frustrating since if I go back and build the identicle solution
under VS2005 SP1 under Windows XP the package installs and works great (but
then no longer works under Vista). What am I missing?
Thanks, -David
Mar 2 '07
18 81293
<he*@40th.comwr ote in message
news:OE******** ******@TK2MSFTN GP05.phx.gbl...
BV [Fri, 9 Mar 2007 14:20:22 -0600]:
The older msvcrt.lib would have no import for the suffix 4 exception
handler
function, because it was introduced with vista.
I've made import libraries in my time from
nothing but DLL files, back around the omf-
coff switch over. If someone wanted to make
an import library for some DLL, I'd assume he
still could. Most files today dwarf the RTL
You can, but that would be a .lib matching the version of the .dll generated
from, hence a Vista msvcrt.lib.
so I'd sooner link static than do that (for
small files, I use the vc6 import lib).
07 02 18 23:23 5,632 zetup.exe
Made with vs8/link8, ref'ing msvcrt.dll.
File made/linked with the vs8 static lib:
07 03 09 14:38 50,176 zetup.exe
(Like I said, simple, so only a little RTL
got linked; no reference to any RTL DLL.)
still, the linker only puts import table entries for the functions
referenced by the objects, so how did _except_handler 4_common get
referenced?
>
--
40th Floor - Software @ http://40th.com/
iplay.40th.com iPlay advanced audio player
zircon.40th.com Zircon music player
BV- [Fri, 9 Mar 2007 15:36:44 -0600]:
>still, the linker only puts import table entries for the functions referenced by the objects, so how did _except_handler 4_common get referenced?
I must not be following this thread as well
as you are.
* msvcrt.dll is used by all vc1-6 applications
that link to the msvcrt.dll
* vc7+ apps no longer use msvcrt.dll, but
rather use a version-specific msvcrt##.dll,
and requires a manifest
* Someone in this thread said msvcrt.dll is
a system dll, and apps, more or less, are
not to use it
This last statement is one that is not terribly
valid. The rest of the thread I wasn't following,
so I don't know how to answer your question.
--
40th Floor - Software @ http://40th.com/
iplay.40th.com iPlay advanced audio player
zircon.40th.com Zircon music player
Hi David,
How about this issue now? Have you managed to use dependency walker to find
out which binary is linking with the msvcrt.dll? If you still need any help
or have any concern, please feel free to feedback, thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
* Someone in this thread said msvcrt.dll is
a system dll, and apps, more or less, are
not to use it
This last statement is one that is not terribly
valid. The rest of the thread I wasn't following,
so I don't know how to answer your question.
The original poster compiled an application under Vista, and it then
wouldn't run on XP because of a missing function in msvcrt.dll.
>
--
40th Floor - Software @ http://40th.com/
iplay.40th.com iPlay advanced audio player
zircon.40th.com Zircon music player
BV [Mon, 12 Mar 2007 09:33:37 -0500]:
>The original poster compiled an application under Vista, and it then wouldn't run on XP because of a missing function in msvcrt.dll.
Now that is pretty odd. The exception routine
looks like it's compiler-born, so if his app
is forceably linking to msvcrt.dll (like I do)
then that'll happen. But you have to go out
of your way to tell the linker to ignore the
default library:
#pragma comment(linker, "/NODEFAULTLIB:ms vcrt80.lib")
and then include the old to resolve what you
have:
#pragma comment(lib, "/yohoho/vs6/msvcrt.lib")
He may have those two, somewhere. In this
case I'd switch to static linking, or find
a way to get the compiler to not reference
that particular exception handler.
--
40th Floor - Software @ http://40th.com/
iplay.40th.com iPlay advanced audio player
zircon.40th.com Zircon music player
#pragma comment(linker, "/NODEFAULTLIB:ms vcrt80.lib")
The OP might use that as a trick to not link
to any embedded msvcrt.lib attribute, by adding
#pragma comment(linker, "/NODEFAULTLIB:ms vcrt.lib")
to his project. It's worth a shot.
--
40th Floor - Software @ http://40th.com/
iplay.40th.com iPlay advanced audio player
zircon.40th.com Zircon music player
Hi Jeffrey!
I am not sure if this is still of interest, but I ran across a customer who
uses our software and had the very same problem.
As it turned out, he had copied a number of DLLs that were shipped with Visa
onto his XP system (and *please* don't ask me why people do this...). Among
those DLLs was the dwmapi.dll that had the fatal msvcrt.dll dependency to
the Vista version of msvcrt.dll which exports the _except_hander4 ...
Deleting that DLL solved the problem in his case.
Regards
Volker
url: http://www.ureader.com/msg/14523230.aspx
On Apr 22, 6:03 am, "Volker
Gimple"<v.DELET ESPAMgim...@ima ging.NOSPAM.dew rote:
Hi Jeffrey!
I am not sure if this is still of interest, but I ran across a customer who
uses our software and had the very same problem.
As it turned out, he had copied a number of DLLs that were shipped with Visa
onto his XP system (and *please* don't ask me why people do this...). Among
those DLLs was the dwmapi.dll that had the fatal msvcrt.dll dependency to
the Vista version of msvcrt.dll which exports the _except_hander4 ...
Deleting that DLL solved the problem in his case.
Regards
Volker
url:http://www.ureader.com/msg/14523230.aspx
Volker:
Thank you so much for sharing this finding!!! After installing my
Creative Sound card that came with a pack of XP and Vista drivers ---
I had the :
The procedure entry point except handler4 common could not be located
in the dynamic link library msvcrt.dll
while using my Safari browser (when minimizing/maximizing windows) and
with Photoshop CS3 --- the programs ran okay --- but the error was a
great annoyance ----
After long hours of searching for solutions --- including XP repair
(which I avoided) --- I found your post!
I searched my drive and found of dwmapi.dll file in my system32
directory and renamed it (in case I needed to recover it.
Now the error is gone!!! In my case the error was called by the
dependency call in the dwmapi.dll .
I really, really, really appreciate you letting us know about this !!!
It's a bad situation when new software trys to accommodate more than
one operating system --- and the .dll dependencies conflict --- these
errors are truly a nasty situation!
Thanks again!!!
After I build a MFC project under vista using vs 2008, I install it under XP.
when i run it, error was happened:
The procedure entry point _except_handler 4_common could not be located in
the dynamic link library msvcrt.dll
why? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kay |
last post by:
I already specified to ignore specific library:
MSVCPRT.lib MSVCRT.lib LIBC.lib MSVCRTD.lib LIBCD.lib
command line is like:
/INCREMENTAL /NOLOGO /DLL /NODEFAULTLIB:"MSVCPRT.lib MSVCRT.lib LIBC.lib
MSVCRTD.lib LIBCD.lib"
but I am still getting conflict linking problems. But if I do specify
/NODEFAULTLIB, I'll get anther bunch of linking errors. Anybody knows why?
thanks,
|
by: bluter |
last post by:
I have a problem with some VC++ (v5 sp3 compiled in debug mode) server
component which perfrom Data Acces. These have been in production on
NT4.0 and w2k. However when we try to use them on Server 2003 we only
get partial functionality. So far we have noticed that when the
components are returning large set of data that they fail. The
following errors are entered in the Event Log and point to msvcrt.dll
and oleaut32.dll. In this...
|
by: =?Utf-8?B?a2FybHJlbnR6aGVpbWVy?= |
last post by:
When attempting to install Microsoft Office 2003 Professional Edition onto
Windows Vista, an error message occurs stating that elevation is required to
install. It is on an Acer laptop if that matters and their is more than
enough room to run it. Any help or advice is greatly appreciated. Thanks.
|
by: Accessed |
last post by:
"(MSSQLSERVER) service is marked as an interactive service. However,
the system is configured to not allow interactive services"
This problems may solve a recurring failure in my automatic updates if
I can figure out what to do with it.
Any Suggestions welcome -
Cheers
|
by: Dick Moores |
last post by:
Windows XP Pro, Python 2.5.1
import msvcrt
while True:
if msvcrt.kbhit():
key = msvcrt.getch()
if key == 'Enter'
do something
Is there a way to catch the pressing of the 'Enter' key?
| |
by: Shadow of Socrates |
last post by:
For AD Programing
See below for Vista
The error message "A referral was returned from the server."
means that the account, group, container or OU can not be found in the
specified active directory path.
|
by: =?Utf-8?B?TWlrZSBNaWtl?= |
last post by:
Multiple problems I believe are related. First SqlDatasource in designer
"Object reference not set to an instance of an object." I believe problems
is caused by unable to read and bind the connectionString settings in the
web.config file.
Second, when trying to run the ASP.Net web site administration tool recieve
the following error:
An error was encountered. Please return to the previous page and try again.
The following message...
|
by: Daelm |
last post by:
Hi, I having problems with a Vista Home Premium laptop, everytime I log on an error appears "Windows could not connect to the User Profile Service service. This problem prevents limited users from logging on to the system." I have checked the accounts and this is an administrator account. I also noticed that laptop harddisk runs for a while. I scanned the laptop with AnitVir and spyware program, but nothing was found. If you can give me a...
|
by: Fary4u |
last post by:
i just create application in vb6 which required msinet.ocx file to execute
msinet.ocx based into system32 directory
there is no problem to running application in windows xp
but when i'm trying to run in vista it's giving me error
"unexpected error"
how can i fix this problem ?
|
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,...
|
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...
| |
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...
|
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,...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |