Thread: wtf is wrong with this resource script!

  1. #1
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343

    wtf is wrong with this resource script!

    i used Microsoft Visual C++ for the resource script and everything is fine, i made a menu, an icon, a cursor, and version info and saved it all, brought it home (i made it on the schools compiler) and plugged the Resource.h and Resource.rc into my Bloodshed Dev C++ project, and created my window.

    now the window itsself doesn;t have any errors at all. but how do i include the custom cursor i made and icon?
    WndClass.hCursor = LoadCursor (NULL, IDC_MAINCUR);
    WndClass.hIcon = LoadIcon (NULL, IDI_ICON1);

    thats how i thought and it wont work.

    but heres another thing:

    theres a problem in the resource script. its trying to:
    #include "afxres.h"
    and it sais that there is no such file or directory. i set the settings of my compiler to Win32GUI. but the frig is going on here!
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Resource scripts generated/tweaked with msvc are not compatible with other resource compilers. In order to use devc++ you will have to manually extract and, in some cases, modify the resource definitions that you wish to use/copy into your target devc++ resource script.

    Without seeing the entire script it's difficult to say but as a first move you should delete ALL microsoft specific text from the resource script. For MingW (windres) you should also #include <windows.h>

    If you still have problems, post your script here.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Resource Script Problem
    By ltanusaputra in forum Windows Programming
    Replies: 2
    Last Post: 06-02-2007, 09:08 AM
  2. MSVC resource script in Dev-C++
    By josh_d in forum Windows Programming
    Replies: 0
    Last Post: 03-17-2004, 04:07 PM
  3. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 01:47 PM
  4. Problem with cgi script - can't rename files
    By bjdea1 in forum C Programming
    Replies: 2
    Last Post: 12-12-2001, 04:09 PM
  5. Problems with resource files
    By Unregistered in forum C++ Programming
    Replies: 18
    Last Post: 08-31-2001, 08:45 AM