Code::Blocks Forums
User forums => Help => Topic started by: courage on January 29, 2009, 03:32:59 am
-
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? :?
-
Just a Guess; but, I think you need to learn how to program using manifest files. Tim S
-
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?
-
the Windows XP Theme effect is not effective.
The is a plugin for that purpose "XP look and feel" - check the plugins menu...
-
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:
-
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: