Author Topic: Changing the executable file name then XP theme effect is not effective  (Read 7161 times)

Offline courage

  • Multiple posting newcomer
  • *
  • Posts: 48
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?  :?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: Changing the executable file name then XP theme effect is not effective
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline courage

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Changing the executable file name then XP theme effect is not effective
« Reply #2 on: January 29, 2009, 04:42:12 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Changing the executable file name then XP theme effect is not effective
« Reply #3 on: January 29, 2009, 11:28:45 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline courage

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Changing the executable file name then XP theme effect is not effective
« Reply #4 on: January 30, 2009, 12:25:51 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:

Offline courage

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Changing the executable file name then XP theme effect is not effective
« Reply #5 on: January 30, 2009, 01:37:03 am »
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:
« Last Edit: January 30, 2009, 05:57:25 am by courage »