473,721 Members | 2,235 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using VC8 linker to generate isolated app manifest with dependencies.

Is there a brief tutorial somewhere on how to use the VC8 linker to generate
a manifest for an isolated application with a dependency section for an
arbitrary dll? There are some implementation details that I don't
understand. Supposing I want to bind my application to a specific version
of kernel32.dll using a hash, for example? What hash is used? Is it the
hash generated by the CryptCATAdmin* functions or just a simple hash of the
whole file? Can I get the linker to generate the proper hash or do I have
to supply the hash dependency section with hash in a manifest include file?
Some additional details would be appreciated.

Regards,

George.
Jul 5 '06 #1
3 2384
Hi Geogre,

Thank you posting!
>Is there a brief tutorial somewhere on how to use the
VC8 linker to generate a manifest for an isolated
application with a dependency section for an arbitrary
dll?
I am afraid the VC8 linker doesn't provide such function to generate an
application manifest, you need to manually create the specific application
manifest by yourself.

By the way, an application manifest only works for several specific
Microsoft Side-by-side Assemblies, the kernel32.dll is not a side-by-side
assembly, so an application manifest would not work in this case. Please
refer to the following MSDN documentation:

Supported Microsoft Side-by-side Assemblies
http://msdn.microsoft.com/library/de...us/sbscs/setup
/supported_micro soft_side_by_si de_assemblies.a sp

By the way, I noticed you have posted a related question in our
platformsdk.sec urity, my colleague Jeffery have also provided a detailed
reply to you in that thread, please check it there.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Jul 6 '06 #2
Gary,
What hash is used? Is it the hash generated by the CryptCATAdmin*
functions or just a
simple hash of the whole file? <
Would you address specifically this part of my post.

Regards,

George.
Jul 6 '06 #3
Hi Geogre,

Thank for your response!
>What hash is used? Is it the hash generated by the
CryptCATAdmi n* functions or just a simple hash of
the whole file?

Would you address specifically this part of my post.
You can use the platform SDK utility Mt.exe to generate hash. It is
available in Windows 2000 and Windows XP.

Mt.exe generates hashes using the CryptoAPI implementation of the Safe Hash
Algorithm (SHA-1). The generated Hashes are inserted as a hexadecimal
string into the <filetags in the manifest. I suggest you refer to the
following platform SDK documentation for the details:

Mt.exe
http://msdn.microsoft.com/library/de...us/sbscs/setup
/supported_micro soft_side_by_si de_assemblies.a sp

By the way, I am afraid my first reply missed the point that the VS2005 has
already integrated the platform SDK's manifest tool. You can access that
option in the project Property Pages dialog. On the Configuration
Properties tab, click Linker, then Manifest File, then Generate Manifest...

One related MSDN documention on this topic is as the following:

Manifest Generation in Visual Studio
http://msdn2.microsoft.com/en-us/library/ms235229.aspx

I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 6 '06 #4

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

Similar topics

1
8701
by: Santhu | last post by:
What is the difference between METADATA and MANIFEST and where do they get stored? Thank you
0
283
by: Denis Sohet | last post by:
Hi, I have to use a MFC C++ DLL (unmanaged of course) in a C++ .Net project. I have problems to do that. I've created a C++ .Net project and includes the MFC DLL. My problems comes as soon as I call a method (ctor, dtor or method) from the MFC DLL. I've got this kind of error : error LNK2001: unresolved external symbol "public: __thiscall
4
2880
by: HarryH | last post by:
I am finding that the linker for a C++ application in VS 2005 is generating a manifest with old version #s for DLLs such as mfc80.dll. How do I make sure that the linker generates a manifest that reflects the correct versions numbers of the DLLs? My application appears not to run on the target XP because of this mismatch. Thanks!
1
11987
by: Terry | last post by:
Is there any hope of using Borland Developer Studio 2006 to link in a DLL compiled by MS Visual C++ version 6? I have a Win32 DLL from a company named Vocera. The DLL defines C++ classes that I want to instantiate and use. It is not COM-compliant. It came with .dll, ..lib, and .h files. I tried using Borland C++Builder 2006, but when I add the .lib file to my project, I get the error: " Error: 'C:\VMI.LIB' contains invalid OMF...
2
2291
by: Marcel | last post by:
Hi, We're building an application consisting of an exe and several dlls with VS2005 that needs to be xcopy installed. VS2005 automatically embeds a manifest binding the app and dlls to the assembly 'Microsoft.VC80.CRT' version 8.0.50608.0. Through a policy in the GAC this version is redirected to version 8.0.50727.42 which is deployed with the app. But when deploying this to a machine not having this policy installed,
6
17017
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project as "Additional Dependencies" under Linker-Input options. Since those libraries are also in different directory, I specified that library path in project as "Additional Library Directories" under Linker-General options. This is where I see some...
18
2292
by: Angus | last post by:
Hello We have a lot of C++ code. And we need to now create a library which can be used from C and C++. Given that we have a lot of C++ code using classes how can we 'hide' the fact that it is C++ from C compilers? Can we have a C header file which uses the functionality of the C++ files and compile this into a lib file?
2
3577
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, I have installed my windows application that uses XpdfViewer (a COM Component for view Pdfs) using ClickOnce. But I get this error:
0
1437
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi misters USING VS 2005 in XP, VB.NET, CLICK ONCE I have a Publish of my application, AdministradorWin.exe, in a folder D:\ClickOnce\instalacionExpedienteElectronico (of a server in my LAN).
0
8840
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
8730
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,...
1
9131
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,...
0
9064
tracyyun
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...
0
8007
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
6669
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
4484
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...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3189
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 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.