User forums > Using Code::Blocks

Resource files

<< < (2/4) > >>

mandrav:

--- Quote ---My thread was deleted the first time.
--- End quote ---

<RANT>
Your thread was not deleted. It was probably posted on the old server while the new server was active for some of us (due to DNS propagation time).
Please don't make it sound like we 're dictators or something...
</RANT>

About the tree view categorization, go to "Project->Project tree->Edit file types & categories" and edit the "Resources" file mask. You can also add/remove categories there, so feel free to adapt everything the way you want :)

About your resource problem now:
First make sure "Compile" and "Link" are checked in the file properties ( I 'm talking about the .rc file).
Also, make sure that the "Compiler variable" is set to WINDRES (in file properties too).
Then enable "Full command line" logging for your compiler (Settings->Compiler->[choose compiler]->Other->Compiler logging).
Rebuild your project and post the full build log here, if it doesn't give you a hint.
You might even want to post the project file's contents or, even better, send me just the project file to take a look at it.

If I understand correctly, you 're using VC toolkit to compile and, although I 've used it with resource files, there is always the chance that something might not work as expected. We 'll find this bug (if it is one) together :)

Yiannis.

Vampyre_Dark:
Okay, all options tweaked as you asked.

The project has no need to be sent to you. There is nothing in it really. Main.h(includes windows headers for now), Main.cpp (empty winmain that calls the dialog box from my .rc) and arenaview.rc (the evil non-compiling villain in this whole thing Wink)

Project   : ArenaView
Compiler  : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : C:\code\ArenaView\src\
--------------------------------------------------------------------------------
Switching to target: default
cl.exe /nologo   /GA /G6 /Ox /GA /G6 /Ox  /GA /G6 /Ox    /I"C:\Program Files\Microsoft Visual C++ Toolkit 2003\include" /I"C:\Program Files\Microsoft Platform SDK\Include" /IC:\code\DarkLib\src /I"C:\Program Files\Microsoft DirectX 9.0 SDK (February 2005)\Include" /c main.cpp /FoC:\code\ArenaView\obj\main.obj
main.cpp
RC.Exe    -foC:\code\ArenaView\obj\ArenaView.res ArenaView.rc
Command execution failed...

Vampyre_Dark:
It appears that the CB settings always want to look in the VC++ bin fodler and not the platform SDK folder, even when I set it otherwise. I even add the path to the platform SDK bin in the extra paths options, and it still doesn't work!

I know you didn't delete my post. :)

Vampyre_Dark:
Okay progress here.

Copying the full path into the little edit box that said rc.exe fixed the problem with RC.exe failing. I get my nice little .res file now... but it says 'cvtres.exe' cannot be run now at the linking stage.

Vampyre_Dark:
Problem solved... :roll: cvtres.exe must be acquired seperately from microsoft.com

 :lol: But at least I found a problem with the extra bin path for rc.exe  :oops:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version