Click here to Skip to main content
15,893,337 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
Nibu babu thomas7-Jul-08 17:41
Nibu babu thomas7-Jul-08 17:41 
QuestionArray of pointers to functions Pin
softwaremonkey7-Jul-08 3:37
softwaremonkey7-Jul-08 3:37 
AnswerRe: Array of pointers to functions Pin
Iain Clarke, Warrior Programmer7-Jul-08 4:04
Iain Clarke, Warrior Programmer7-Jul-08 4:04 
QuestionRe: Array of pointers to functions Pin
David Crow7-Jul-08 4:24
David Crow7-Jul-08 4:24 
AnswerRe: Array of pointers to functions Pin
softwaremonkey8-Jul-08 1:20
softwaremonkey8-Jul-08 1:20 
QuestionMigration Approach Pin
Member 35010957-Jul-08 2:55
Member 35010957-Jul-08 2:55 
QuestionAdo slow connection to sql server when compiled with VS2008 Pin
peterboulton7-Jul-08 2:26
professionalpeterboulton7-Jul-08 2:26 
QuestionQuery on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 1:48
ComplexLifeForm7-Jul-08 1:48 
Hi,

I am using VC++ 2005 with SP1 compiler for my project. The development is being done on Windows XP Pro + SP2 machine but the application is supposed to run on all platforms from Windows 2000 to Windows 2008. The application is a typical MFC application with one executable and many DLL files.

Now the query, compiling and running the application on my machine has no issues. However to run the application on the Windows Vista or 2008 I need to have either Visual C++ 2005 SP1 redistributable installed on the target machine or I should be using building the application with SxS assembly isolation in mind and provide the correct manifest for the executables and dll's (either embed it in the binaries or have them as separate file). Also I am relying on VC to generate/embed the manifest file on its own i.e. I am not supplying manifest file explicitly.

So while building the application I have chosen to embed the manifest file and set use isolation linker option. I was hoping that it will work properly, but unfortunately it didn't. When I checked I found that the manifest file embedded in one of the Dll's has different information than other DLL's due to which the application could not load the dependency properly.

For this particular DLL the embedded manifest file looks like this

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50727.762" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.MFC" version="8.0.50727.762" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50608.0" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.MFC" version="8.0.50608.0" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>

I have Microsoft.VC80.CRT and Microsoft.VC80.MFC manifest files along with the proper versions of the DLL files in the output directory.

I am unable to figure out from where the VC linker is referencing the MFC and Runtime libraries with the following version <b>Microsoft.VC80.CRT" version="8.0.50608.0"</b>.

A quick scan of the dll in question does not show me any dependency on MFC or VC runtime libraries with version 8.0.50608.

Can someone please help me in identifying the location from where the VC linker picks up the manifest file to be generated?
If this is not the correct forum please do let me know

I am waiting for resolution and help in understanding the issue from all the brilliant guys out there.

Thanks and Regards
Smile | :) Smile | :)
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
KarstenK7-Jul-08 2:29
mveKarstenK7-Jul-08 2:29 
GeneralRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 8:40
ComplexLifeForm7-Jul-08 8:40 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:48
Saurabh.Garg7-Jul-08 15:48 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:50
Saurabh.Garg7-Jul-08 15:50 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm9-Jul-08 2:28
ComplexLifeForm9-Jul-08 2:28 
Questionhow can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 1:18
danginkgo7-Jul-08 1:18 
AnswerRe: how can I display a bitmap with an alpha chanel? Pin
rp_suman7-Jul-08 2:36
rp_suman7-Jul-08 2:36 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 3:04
danginkgo7-Jul-08 3:04 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
rp_suman7-Jul-08 3:43
rp_suman7-Jul-08 3:43 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 19:30
danginkgo7-Jul-08 19:30 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
rp_suman8-Jul-08 4:36
rp_suman8-Jul-08 4:36 
QuestionRe: how can I display a bitmap with an alpha chanel? Pin
Mark Salsbery7-Jul-08 6:25
Mark Salsbery7-Jul-08 6:25 
AnswerRe: how can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 19:17
danginkgo7-Jul-08 19:17 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
Mark Salsbery8-Jul-08 6:12
Mark Salsbery8-Jul-08 6:12 
QuestionIE in my app Pin
Ajay L D7-Jul-08 1:15
Ajay L D7-Jul-08 1:15 
AnswerRe: IE in my app Pin
Varghese Paul M7-Jul-08 1:22
Varghese Paul M7-Jul-08 1:22 
GeneralRe: IE in my app Pin
Ajay L D7-Jul-08 1:39
Ajay L D7-Jul-08 1:39 

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.