E
enki
I am trying to learn basic resources. I am trying to load a bmp file I
wrote with the win drawing program. I am trying to make this a
pointer. The program complies and runs but the pointer dosnt change.
I am using the free dev c++ complier from bloodshed.
These are the pertent parts of the program. I have gotten another
program to work that uses resources.
resources.rc:
#include"res1.h"
icon_name ICON1 "graphic.bmp"
res1.h:
#define ID_ICON1 100
Main program:
#include <windows.h>
#include <windowsx.h>
#include <iostream>
#include "res1.h"
/* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon (hThisInstance,MAKEINTRESOURCE(ID_ICON1));
wincl.hIconSm = LoadIcon (hThisInstance,MAKEINTRESOURCE(ID_ICON1));
wrote with the win drawing program. I am trying to make this a
pointer. The program complies and runs but the pointer dosnt change.
I am using the free dev c++ complier from bloodshed.
These are the pertent parts of the program. I have gotten another
program to work that uses resources.
resources.rc:
#include"res1.h"
icon_name ICON1 "graphic.bmp"
res1.h:
#define ID_ICON1 100
Main program:
#include <windows.h>
#include <windowsx.h>
#include <iostream>
#include "res1.h"
/* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon (hThisInstance,MAKEINTRESOURCE(ID_ICON1));
wincl.hIconSm = LoadIcon (hThisInstance,MAKEINTRESOURCE(ID_ICON1));