News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Using windows visual styles.

Started by Plazzmex, January 29, 2009, 07:01:18 PM

Previous topic - Next topic

Plazzmex

Hello.
I have a problem.
Ive maked my prog to use Windows visual styles like described here: http://msdn.microsoft.com/en-us/library/ms997646.aspx#xptheming_topic4

But in Dev-Cpp with GCC MinGW compiler it works perfect, but with CodeBlock it doesnt. It disables all the controls and popups in my program and that's it.

What am I doing wrong ?

Plazzmex


stahta01

#2
What Compiler are you using with Code::Blocks build?
Note, this is needed info on nearly every question; please state it!

FYI: The "XP Look and feel" plugin helps to handle this problem; but, I have never did any fine tuning on it.

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]

Plazzmex

#3
GCC MinGW as with dev-cpp..

p.s - and the "XP look and Feel" plugin doesn't help.. the same problem when i'm creating the manifest file with it.. so.. something is wrong there.. but what ?

stahta01

#4
Quote from: Plazzmex on January 31, 2009, 09:55:15 PM
GCC MinGW as with dev-cpp..

If you are using another installation of MinGW GCC that might be the cause.
NOTE: To use more than one copy of MinGW GCC, there MUST NOT be an C:\MinGW folder where C is any drive letter.

I suggest turning on Full Compiler logging under Code::Blocks and whatever dev-cpp can do to get the commands passed to the Compiler; then, compare the commands to see where the problem exists.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

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]

Plazzmex

oh way..
I think that its a windows problem..
Because now even with wx-devcpp it isn't working..

What to do ?

ollydbg

Quote from: Plazzmex on February 06, 2009, 06:00:08 PM
oh way..
I think that its a windows problem..
Because now even with wx-devcpp it isn't working..

What to do ?
Delete all the MinGW package, and install only one package.
Post the compiler output message if problems still exist.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Plazzmex

Quote from: ollydbg on February 07, 2009, 07:25:55 AM
Delete all the MinGW package, and install only one package.
Tried this.. Nothing changed.. the same problem exist.
Quote from: ollydbg on February 07, 2009, 07:25:55 AM
Post the compiler output message if problems still exist.
Nothing.. The compiler compiles it perfect, without any warning messages or errors..
all clear.