News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Changing the executable file name then XP theme effect is not effective

Started by courage, January 29, 2009, 03:32:59 AM

Previous topic - Next topic

courage

It's strange to me that if I change the Code::Blocks wxWidgets GUI project target file name, the Windows XP Theme effect is not effective. In the same case, after changing the files' name of the sample projects of wxWidgets, the XP theme effect is still effective. What should I do?  :?

stahta01

Just a Guess; but, I think you need to learn how to program using manifest files. Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

courage

Quote from: stahta01 on January 29, 2009, 03:42:02 AM
Just a Guess; but, I think you need to learn how to program using manifest files. Tim S

Thanks Tim, but it looks very strange. It can be proved with some resouce hacking tools that the manifest file is included in the binary file.
I also rewrite a manifest file and put it in the same directory, and also call InitCommonControlsEx function to register controls(but I think it is not necessary. wxWidgets should do it well).

If my project target file name is not changed, it is ok, if changed, no XP effect. I think it should be my fault, because a clear default wxSmith project will always show XP effect, even though the file name is changed. But it is really hard to me to debug. Could you or someone can give me some advice?

MortenMacFly

Quote from: courage on January 29, 2009, 03:32:59 AM
the Windows XP Theme effect is not effective.
The is a plugin for that purpose "XP look and feel" - check the plugins menu...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

courage

Quote from: MortenMacFly on January 29, 2009, 11:28:45 AM
Quote from: courage on January 29, 2009, 03:32:59 AM
the Windows XP Theme effect is not effective.
The is a plugin for that purpose "XP look and feel" - check the plugins menu...

Thanks Morten, I have tried it, but it still can't work. :cry:

courage

Aha! I got it!  :D

I found the reason why the XP theme effect won't be effective when the executable file name changed. Because of the file name is the same as the system file name such as "svchost.exe" or "spoolsv.exe", the effect will not be effective.

I am not writing a virus, I am just writing a time contorlling tool to limit the working or playing time and wanna kids can't close it form task manager. This way to fake a system process looks very stupid, I know.

I have tried to inject dll to "explorer.exe" process and the anti-virus software always caught it. I also tried to promote the privilege of the tool, but it never works. :cry: