when i try to change the default icon to something else i get the following error
C:\Users\public\Desktop\gcc installation problem, cannot exec `cc1': No such file or directory. [Resource error] no resources
C:\Users\Karim\Desktop\Makefile.win [Build Error][Project1_private.res] Error 1
What should i do now?
i don't thing its a installation problem because i try it with one of the examples and it works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please get in the habit of NOT excerpting the error message. Please post your full Basic 3, the are covered in the thread titled "Please Read Before Posting a Question".
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when i try to change the default icon to something else i get the following error
C:\Users\public\Desktop\gcc installation problem, cannot exec `cc1': No such file or directory.
[Resource error] no resources
C:\Users\Karim\Desktop\Makefile.win [Build Error] [Project1_private.res] Error 1
What should i do now?
i don't thing its a installation problem because i try it with one of the examples and it works.
Please get in the habit of NOT excerpting the error message. Please post your full Basic 3, the are covered in the thread titled "Please Read Before Posting a Question".
Wayne
It looks like you dont have any resource files in your project...
First you need to define the resource id in the projects header file (project.h).
[code]
ifndef PROJECT_H
define PROJECT_H
include <windows.h>
define IDR_MAINFRAME 100
endif / PROJECT_H /
[/code]
Then you need to define the resource in the projects resource script (project.rc).
[code]
include "project.h"
IDR_MAINFRAME ICON "filename.ico"
[/code]
Now you can load and use the resource in the projects source file (project.cpp).
[code]
include "project.h"
...
HICON hIcon = LoadIcon(hInst,MAKEINTRESOURCE(IDR_MAINFRAME));
[/code]
See MSDN for LoadIcon and other related ops.
Related
Code: code