473,394 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Xp Themes

I had my app using the

Windows.Forms.Application.EnableVisualStyles()
Windows.Forms.Application.DoEvents()

And I was receiving some errors, so I want to go to a manifest file, but I
copied one off a newsgroup -- see below

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-cÂ*om:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="MyApp"
type="win32"
/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.CommonÂ*-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1Â*df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

When you have this as a file do the following in the VS .NET IDE:
1. Select File>Open File
2. Open your executable file
3. Right click the parent node and select 'Add Resource'
4. Choose Import and select the manifest file
5. When the box appears asking for the type of resource type RT_MANIFEST
6. The resource identifier needs to be 1, so select '101' in the
RT_MANIFEST folder and change it to 1
I followed these steps and when I try to run my application in debug or
right from the exe I get.

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

Any help would be appreciated.
Nov 22 '05 #1
12 1528
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.

Nov 22 '05 #2
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.

Nov 22 '05 #3
If you read my explaination I did all that and I'm coming up with an error.
So I need some help with what I put in my manifest file and the directions I
followed to embed the manifest file with the exe.

"Jamin Guy" wrote:
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.

Nov 22 '05 #4
If you read my explaination I did all that and I'm coming up with an error.
So I need some help with what I put in my manifest file and the directions I
followed to embed the manifest file with the exe.

"Jamin Guy" wrote:
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.

Nov 22 '05 #5
MasterBlaster,
If you read my explaination I did all that and I'm coming up with an
error.


Where, when you want help, than this are really the replies you would have
to give.

Cor
Nov 22 '05 #6
MasterBlaster,
If you read my explaination I did all that and I'm coming up with an
error.


Where, when you want help, than this are really the replies you would have
to give.

Cor
Nov 22 '05 #7
Hi MasterBlaster,

Thanks for your post.

Do you use .Net Framework 1.1? Can you show us which error generate when
you are using EnableVisualStyles() method?

Do you use a Appname.exe.config file in your project? Normally, this
problem may be caused by placing encoding="Windows-1252" statement in your
application config file, which is conflicted with the encoding setting in
the manifest file. So we should just remove this encoding statement. This
may get rid of your problem.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #8
Hi MasterBlaster,

Thanks for your post.

Do you use .Net Framework 1.1? Can you show us which error generate when
you are using EnableVisualStyles() method?

Do you use a Appname.exe.config file in your project? Normally, this
problem may be caused by placing encoding="Windows-1252" statement in your
application config file, which is conflicted with the encoding setting in
the manifest file. So we should just remove this encoding statement. This
may get rid of your problem.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #9
Try putting "Microsoft.Winweb" in front of your applications name (I assume
Myapp is the name of your .exe):

<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Winweb.Myapp"
type="win32"
/>

As someone else has pointed out, you do not need to embed the manifest file
in your exe. You can just rename the manifest file to Myapp.exe.manifest and
deploy it in the same directory as your exe.

HTH, Jakob.

--
http://www.dotninjas.dk
http://www.powerbytes.dk
"MasterBlaster" wrote:
If you read my explaination I did all that and I'm coming up with an error.
So I need some help with what I put in my manifest file and the directions I
followed to embed the manifest file with the exe.

"Jamin Guy" wrote:
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.

Nov 22 '05 #10
Try putting "Microsoft.Winweb" in front of your applications name (I assume
Myapp is the name of your .exe):

<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Winweb.Myapp"
type="win32"
/>

As someone else has pointed out, you do not need to embed the manifest file
in your exe. You can just rename the manifest file to Myapp.exe.manifest and
deploy it in the same directory as your exe.

HTH, Jakob.

--
http://www.dotninjas.dk
http://www.powerbytes.dk
"MasterBlaster" wrote:
If you read my explaination I did all that and I'm coming up with an error.
So I need some help with what I put in my manifest file and the directions I
followed to embed the manifest file with the exe.

"Jamin Guy" wrote:
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.

Nov 22 '05 #11
I'm all set I figured it out last night.

Thanks

"Cor Ligthert" wrote:
MasterBlaster,
If you read my explaination I did all that and I'm coming up with an
error.


Where, when you want help, than this are really the replies you would have
to give.

Cor

Nov 22 '05 #12
I'm all set I figured it out last night.

Thanks

"Cor Ligthert" wrote:
MasterBlaster,
If you read my explaination I did all that and I'm coming up with an
error.


Where, when you want help, than this are really the replies you would have
to give.

Cor

Nov 22 '05 #13

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

Similar topics

0
by: Full Decent | last post by:
Hey again! In my quest to make proper use of OO PHP I would like to ask for a critique of the current method of doing themes in the Camera Life (http://fdcl.sf.net) software and see if an OO...
4
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu...
6
by: Clinton Farleigh | last post by:
Hi, I was going to ask a question, but I think I've answered it so now I am going to rant about how crappy ASP.NET themes are instead. As I've indicated above, my problem today is with themes....
3
by: WT | last post by:
Hello, I need to list all available themes for a .NET app, is there any API in ..NET2 for this or should I explore the folder files using IO methods ? Thanks for indication CS
11
by: New Bee | last post by:
Hi, I have been looking at Themes and Skins today and now resonably understand how they work at a ground level. But I have a couple of questions. 1. ) StyleSheetTheme I dont understand...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.