473,325 Members | 2,860 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,325 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 1524
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.