You need a resource editor. I used Resource Hacker.
1. Open your compiled dll with Resource Hacker.
2. Rename the resource (mine was in 24:1:1033) to 24:2:1033 (Right Click "1033"->Rename Resource [...]->Type "2")
3. Export the whole resource from Resource Hacker. (Action->Save All Resources)
4. Add the exported resource to your project resource tab.
5. Recompile your DLL.
6. You can now inject.. umm I mean use your DLL with the uxtheme visual style enabled.

Note: I don't have any resource other than the manifest, That is why I used Save all resources
Note: Only works when the main application's process has a manifest.
All Thanks to http://www.purebasic.fr/english/viewtop ... 16#p102716